1
0
mirror of synced 2024-12-04 18:56:06 +03:00

#1209 DDC-3427 - removing leftover EntityManager hints (using interface instead)

This commit is contained in:
Marco Pivetta 2015-01-16 14:44:31 +01:00
parent dd8db1acd2
commit 339bd23ac8
3 changed files with 10 additions and 13 deletions

View File

@ -19,12 +19,9 @@
namespace Doctrine\ORM\Event;
use Doctrine\Common\EventArgs;
use Doctrine\Common\Persistence\Event\ManagerEventArgs;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
/**
* Class that holds event arguments for a `onClassMetadataNotFound` event.

View File

@ -19,7 +19,7 @@
namespace Doctrine\ORM\Event;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
/**
* Class that holds event arguments for a preInsert/preUpdate event.
@ -39,11 +39,11 @@ class PreUpdateEventArgs extends LifecycleEventArgs
/**
* Constructor.
*
* @param object $entity
* @param EntityManager $em
* @param array $changeSet
* @param object $entity
* @param EntityManagerInterface $em
* @param array $changeSet
*/
public function __construct($entity, EntityManager $em, array &$changeSet)
public function __construct($entity, EntityManagerInterface $em, array &$changeSet)
{
parent::__construct($entity, $em);

View File

@ -19,7 +19,7 @@
namespace Doctrine\ORM\Persisters\Collection;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\UnitOfWork;
/**
@ -31,7 +31,7 @@ use Doctrine\ORM\UnitOfWork;
abstract class AbstractCollectionPersister implements CollectionPersister
{
/**
* @var EntityManager
* @var EntityManagerInterface
*/
protected $em;
@ -41,7 +41,7 @@ abstract class AbstractCollectionPersister implements CollectionPersister
protected $conn;
/**
* @var \Doctrine\ORM\UnitOfWork
* @var UnitOfWork
*/
protected $uow;
@ -62,9 +62,9 @@ abstract class AbstractCollectionPersister implements CollectionPersister
/**
* Initializes a new instance of a class derived from AbstractCollectionPersister.
*
* @param \Doctrine\ORM\EntityManager $em
* @param EntityManagerInterface $em
*/
public function __construct(EntityManager $em)
public function __construct(EntityManagerInterface $em)
{
$this->em = $em;
$this->uow = $em->getUnitOfWork();