. */ namespace Doctrine\ORM\Event; /** * Lifecycle Events are triggered by the UnitOfWork during lifecycle transitions * of entities. * * @since 2.0 * @author Roman Borschel * @author Benjamin Eberlei */ class LifecycleEventArgs extends \Doctrine\Common\EventArgs { /** * @var EntityManager */ private $_em; /** * @var object */ private $_entity; public function __construct($entity, $em) { $this->_entity = $entity; $this->_em = $em; } public function getEntity() { return $this->_entity; } /** * @return EntityManager */ public function getEntityManager() { return $this->_em; } }