1
0
mirror of synced 2025-03-03 19:33:22 +03:00

#1112 - renamed $class to $className

This commit is contained in:
Marco Pivetta 2014-08-18 15:01:52 +02:00
parent a665cb0229
commit 7865de92ab

View File

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