Pārlūkot izejas kodu

[DoctrineBridge] Fixed the entity provider to support proxies

Christophe Coevoet 13 gadi atpakaļ
vecāks
revīzija
649fa5219f

+ 1 - 1
src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php

@@ -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);
     }
 }