diff --git a/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php b/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php index d756ed4f9..a0564ba94 100644 --- a/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php +++ b/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php @@ -43,15 +43,15 @@ class DefaultRepositoryFactory implements RepositoryFactory { $entityName = ltrim($entityName, '\\'); - $class = $entityManager->getClassMetadata($entityName)->getName(); + $className = $entityManager->getClassMetadata($entityName)->getName(); - if (isset($this->repositoryList[$class])) { - return $this->repositoryList[$class]; + if (isset($this->repositoryList[$className])) { + return $this->repositoryList[$className]; } $repository = $this->createRepository($entityManager, $entityName); - $this->repositoryList[$class] = $repository; + $this->repositoryList[$className] = $repository; return $repository; }