. */ namespace Doctrine\ORM\Event; use Doctrine\ORM\EntityManager; /** * Lifecycle Events are triggered by the UnitOfWork * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.com * @since 1.0 * @version $Revision$ * @author Roman Borschel * @author Benjamin Eberlei */ class LifecycleEventArgs extends \Doctrine\Common\EventArgs { /** * @var EntityManager */ private $_em; /** * @var object */ private $_entity; public function __construct($entity, EntityManager $em) { $this->_entity = $entity; $this->_em = $em; } public function getEntity() { return $this->_entity; } /** * @return EntityManager */ public function getEntityManager() { return $this->_em; } }