From dbd3fa4501ba062e749c2227bec4ac5934699df5 Mon Sep 17 00:00:00 2001 From: Bocharsky Victor Date: Wed, 29 Jul 2015 21:49:49 +0300 Subject: [PATCH] Add type hint for entity manager --- lib/Doctrine/ORM/EntityRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/EntityRepository.php b/lib/Doctrine/ORM/EntityRepository.php index 47d0648be..297de9967 100644 --- a/lib/Doctrine/ORM/EntityRepository.php +++ b/lib/Doctrine/ORM/EntityRepository.php @@ -19,6 +19,7 @@ namespace Doctrine\ORM; +use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Query\ResultSetMappingBuilder; use Doctrine\Common\Persistence\ObjectRepository; use Doctrine\Common\Collections\Selectable; @@ -61,7 +62,7 @@ class EntityRepository implements ObjectRepository, Selectable * @param EntityManager $em The EntityManager to use. * @param Mapping\ClassMetadata $class The class descriptor. */ - public function __construct($em, Mapping\ClassMetadata $class) + public function __construct(EntityManagerInterface $em, Mapping\ClassMetadata $class) { $this->_entityName = $class->name; $this->_em = $em;