Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed variable in RepositoryManager

  • Loading branch information...
commit d78ed342d4eabf2e1639e0c3288d4528fd7569f2 1 parent 9c0d7dd
@richardmiller richardmiller authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 Manager/RepositoryManager.php
View
10 Manager/RepositoryManager.php
@@ -51,16 +51,16 @@ public function getRepository($entityName)
return $repository;
}
- protected function getRepositoryName($realEntityName)
+ protected function getRepositoryName($entityName)
{
- if (isset($this->entities[$realEntityName]['repositoryName'])) {
- return $this->entities[$realEntityName]['repositoryName'];
+ if (isset($this->entities[$entityName]['repositoryName'])) {
+ return $this->entities[$entityName]['repositoryName'];
}
- $refClass = new \ReflectionClass($realEntityName);
+ $refClass = new \ReflectionClass($entityName);
$annotation = $this->reader->getClassAnnotation($refClass, 'FOQ\\ElasticaBundle\\Configuration\\Search');
if ($annotation) {
- $this->entities[$realEntityName]['repositoryName']
+ $this->entities[$entityName]['repositoryName']
= $annotation->repositoryClass;
return $annotation->repositoryClass;
}
Please sign in to comment.
Something went wrong with that request. Please try again.