1
0
mirror of synced 2024-12-12 22:36:02 +03:00

[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:
beberlei 2010-02-22 22:32:15 +00:00
parent 96eaf67e0f
commit cbad4bff3a

View File

@ -21,8 +21,6 @@
namespace Doctrine\ORM\Event;
use Doctrine\ORM\EntityManager;
/**
* Lifecycle Events are triggered by the UnitOfWork
*
@ -45,7 +43,7 @@ class LifecycleEventArgs extends \Doctrine\Common\EventArgs
*/
private $_entity;
public function __construct($entity, EntityManager $em)
public function __construct($entity, $em)
{
$this->_entity = $entity;
$this->_em = $em;