1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Reduced granularity of DefaultRepositoryFactory reference to ObjectRepository instances, in cases where consumers are completely rewrote EntityRepository.

This commit is contained in:
Guilherme Blanco 2013-06-13 23:59:08 -04:00
parent a66fc03441
commit 3488049c18
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ class DefaultRepositoryFactory implements RepositoryFactory
/**
* The list of EntityRepository instances.
*
* @var array<\Doctrine\ORM\EntityRepository>
* @var array<\Doctrine\Common\Persistence\ObjectRepository>
*/
private $repositoryList = array();
@ -60,7 +60,7 @@ class DefaultRepositoryFactory implements RepositoryFactory
* @param \Doctrine\ORM\EntityManagerInterface $entityManager The EntityManager instance.
* @param string $entityName The name of the entity.
*
* @return \Doctrine\ORM\EntityRepository
* @return \Doctrine\Common\Persistence\ObjectRepository
*/
protected function createRepository(EntityManagerInterface $entityManager, $entityName)
{

View File

@ -35,7 +35,7 @@ interface RepositoryFactory
* @param \Doctrine\ORM\EntityManagerInterface $entityManager The EntityManager instance.
* @param string $entityName The name of the entity.
*
* @return \Doctrine\ORM\EntityRepository
* @return \Doctrine\Common\Persistence\ObjectRepository
*/
public function getRepository(EntityManagerInterface $entityManager, $entityName);
}