[2.0] DDC-358 - Refactored UnitOfWork Event triggering capabilities - Removed check for EntityManager instance. This is deep in the code and can hardly be get wrong.
This commit is contained in:
parent
96eaf67e0f
commit
cbad4bff3a
@ -21,8 +21,6 @@
|
|||||||
|
|
||||||
namespace Doctrine\ORM\Event;
|
namespace Doctrine\ORM\Event;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManager;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lifecycle Events are triggered by the UnitOfWork
|
* Lifecycle Events are triggered by the UnitOfWork
|
||||||
*
|
*
|
||||||
@ -45,7 +43,7 @@ class LifecycleEventArgs extends \Doctrine\Common\EventArgs
|
|||||||
*/
|
*/
|
||||||
private $_entity;
|
private $_entity;
|
||||||
|
|
||||||
public function __construct($entity, EntityManager $em)
|
public function __construct($entity, $em)
|
||||||
{
|
{
|
||||||
$this->_entity = $entity;
|
$this->_entity = $entity;
|
||||||
$this->_em = $em;
|
$this->_em = $em;
|
||||||
|
Loading…
Reference in New Issue
Block a user