Skip to content

Commit ca8b843

Browse files
committed
Only using getClass() where I actually need a class. Fixes a recursive issue
1 parent 4d6d41d commit ca8b843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private function getEntityManager()
118118

119119
private function getRepository()
120120
{
121-
return $this->getEntityManager()->getRepository($this->getClass());
121+
return $this->getEntityManager()->getRepository($this->classOrAlias);
122122
}
123123

124124
private function getClass()
@@ -138,6 +138,6 @@ private function getClass()
138138

139139
private function getClassMetadata()
140140
{
141-
return $this->getEntityManager()->getClassMetadata($this->getClass());
141+
return $this->getEntityManager()->getClassMetadata($this->classOrAlias);
142142
}
143143
}

0 commit comments

Comments
 (0)