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

Skip to content

Commit 7865de9

Browse files
committed
doctrine#1112 - renamed $class to $className
1 parent a665cb0 commit 7865de9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ public function getRepository(EntityManagerInterface $entityManager, $entityName
4343
{
4444
$entityName = ltrim($entityName, '\\');
4545

46-
$class = $entityManager->getClassMetadata($entityName)->getName();
46+
$className = $entityManager->getClassMetadata($entityName)->getName();
4747

48-
if (isset($this->repositoryList[$class])) {
49-
return $this->repositoryList[$class];
48+
if (isset($this->repositoryList[$className])) {
49+
return $this->repositoryList[$className];
5050
}
5151

5252
$repository = $this->createRepository($entityManager, $entityName);
5353

54-
$this->repositoryList[$class] = $repository;
54+
$this->repositoryList[$className] = $repository;
5555

5656
return $repository;
5757
}

0 commit comments

Comments
 (0)