This commit is contained in:
Tim Nagel 2015-03-12 21:20:00 +11:00
commit dd388e4b25
86 changed files with 535 additions and 483 deletions

View file

@ -25,13 +25,13 @@ class RepositoryManager implements RepositoryManagerInterface
public function addEntity($entityName, FinderInterface $finder, $repositoryName = null)
{
$this->entities[$entityName]= array();
$this->entities[$entityName] = array();
$this->entities[$entityName]['finder'] = $finder;
$this->entities[$entityName]['repositoryName'] = $repositoryName;
}
/**
* Return repository for entity
* Return repository for entity.
*
* Returns custom repository if one specified otherwise
* returns a basic repository.
@ -63,6 +63,7 @@ class RepositoryManager implements RepositoryManagerInterface
if ($annotation) {
$this->entities[$entityName]['repositoryName']
= $annotation->repositoryClass;
return $annotation->repositoryClass;
}