1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Merge pull request #1482 from bocharsky-bw/patch-1

Add type hint for entity manager
This commit is contained in:
Marco Pivetta 2015-09-04 08:34:35 +01:00
commit 2d00a9bcbf

View File

@ -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;