From cbad4bff3ab23c1740abd7aac859a771d835811f Mon Sep 17 00:00:00 2001 From: beberlei Date: Mon, 22 Feb 2010 22:32:15 +0000 Subject: [PATCH] [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. --- lib/Doctrine/ORM/Event/LifecycleEventArgs.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Event/LifecycleEventArgs.php b/lib/Doctrine/ORM/Event/LifecycleEventArgs.php index 57b2273d1..88334e351 100644 --- a/lib/Doctrine/ORM/Event/LifecycleEventArgs.php +++ b/lib/Doctrine/ORM/Event/LifecycleEventArgs.php @@ -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;