This is a port of sfGuardPlugin for the Doctrine ORM.