def copy(self):
        '''
        Creates a shallow copy of the given entity (any entities that can be
        retrieved from a OneToMany relationship will not be copied).
        '''
        x = self.to_dict()
        x.pop(self._pkey)
        return self.__class__(**x)
Creates a shallow copy of the given entity (any entities that can be
        retrieved from a OneToMany relationship will not be copied).