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); } /**