[DoctrineBridge] Fixed the entity provider to support proxies

This commit is contained in:
Christophe Coevoet 2011-12-19 18:32:21 +01:00
parent 29f4111f3e
commit 649fa5219f

View File

@ -100,6 +100,6 @@ class EntityUserProvider implements UserProviderInterface
*/
public function supportsClass($class)
{
return $class === $this->class;
return $class === $this->class || is_subclass_of($class, $this->class);
}
}