public function remember(EntityInterface &$object)
    {
        if ($object->isLoaded()) {
            $this->addToObjectPool($this->requireRegisteredType(get_class($object)), $object->getId(), $object);
        } else {
            throw new InvalidArgumentException('Object needs to be saved in the database to be remembered');
        }
    }