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');
        }
    }
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');
        }
    }
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' ) ; } }
Add object to the pool.

@param EntityInterface $object
Add object to the pool .