#1112 - renamed $class to $className
This commit is contained in:
parent
a665cb0229
commit
7865de92ab
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue