Skip to content

Commit 649fa52

Browse files
committed
[DoctrineBridge] Fixed the entity provider to support proxies
1 parent 29f4111 commit 649fa52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ public function refreshUser(UserInterface $user)
100100
*/
101101
public function supportsClass($class)
102102
{
103-
return $class === $this->class;
103+
return $class === $this->class || is_subclass_of($class, $this->class);
104104
}
105105
}

0 commit comments

Comments
 (0)