Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4246bf

Browse files
committed
Only using getClass() where I actually need a class. Fixes a recursive issue
1 parent 8e01383 commit b4246bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ public function supportsClass($class)
107107
return $class === $this->getClass() || is_subclass_of($class, $this->getClass());
108108
}
109109

110-
private function getEntityManager()
110+
private function getObjectManager()
111111
{
112112
return $this->registry->getManager($this->managerName);
113113
}
114114

115115
private function getRepository()
116116
{
117-
return $this->getEntityManager()->getRepository($this->getClass());
117+
return $this->getObjectManager()->getRepository($this->classOrAlias);
118118
}
119119

120120
private function getClass()
@@ -134,6 +134,6 @@ private function getClass()
134134

135135
private function getClassMetadata()
136136
{
137-
return $this->getEntityManager()->getClassMetadata($this->getClass());
137+
return $this->getObjectManager()->getClassMetadata($this->classOrAlias);
138138
}
139139
}

0 commit comments

Comments
 (0)