Skip to content

Commit

Permalink
Renamed variable in RepositoryManager
Browse files Browse the repository at this point in the history
  • Loading branch information
richardmiller-zz committed Jan 25, 2012
1 parent 9c0d7dd commit d78ed34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Manager/RepositoryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d78ed34

Please sign in to comment.