From d8a1c5c5ef236b0761b000ec3fafbded1e941590 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Tue, 5 Jan 2010 17:11:24 +0000 Subject: [PATCH] [2.0][DDC-234] Fixed issue with EntityRepository that was not considering alias of root Entity when instantiating a new QueryBuilder --- lib/Doctrine/ORM/EntityRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/EntityRepository.php b/lib/Doctrine/ORM/EntityRepository.php index 2a33075c6..0a601065d 100644 --- a/lib/Doctrine/ORM/EntityRepository.php +++ b/lib/Doctrine/ORM/EntityRepository.php @@ -63,7 +63,7 @@ class EntityRepository { return $this->_em->createQueryBuilder() ->select($alias) - ->from($this->_entityName); + ->from($this->_entityName, $alias); } /**