From 3488049c18849a0cb942f4fea00501fa11727a83 Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Thu, 13 Jun 2013 23:59:08 -0400 Subject: [PATCH] Reduced granularity of DefaultRepositoryFactory reference to ObjectRepository instances, in cases where consumers are completely rewrote EntityRepository. --- lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php | 4 ++-- lib/Doctrine/ORM/Repository/RepositoryFactory.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php b/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php index 0caab1b63..932a1108c 100644 --- a/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php +++ b/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php @@ -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) { diff --git a/lib/Doctrine/ORM/Repository/RepositoryFactory.php b/lib/Doctrine/ORM/Repository/RepositoryFactory.php index faf7d6c81..00efca2c7 100644 --- a/lib/Doctrine/ORM/Repository/RepositoryFactory.php +++ b/lib/Doctrine/ORM/Repository/RepositoryFactory.php @@ -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); } \ No newline at end of file