DoctrineWrapper

Auth storage wrapper for doctrine objects. Stores the ID instead of the full object, translates between ID and object automatically on read/write.
implements Zend\Authentication\Storage\StorageInterface
Methods Summary
public
# __construct( Zend\Authentication\Storage\StorageInterface $storage , Doctrine\ORM\EntityRepository $repository )
Create the wrapper around the given storage method, looking up users from the given repository.
public
public
public
# write( $identity )
public
public
# setStorage( Zend\Authentication\Storage\StorageInterface $storage )
Set the base storage class to wrap.
public
# getStorage( )
Get the storage class being wrapped.
public
# setRepository( Doctrine\ORM\EntityRepository $repository )
Set the repository for looking up User objects.
public
# getRepository( )
Get the repository for looking up User objects.
Properties Summary
protected Zend\Authentication\Storage\StorageInterface $storage
# NULL
protected Doctrine\ORM\EntityRepository $repository
# NULL