. */ namespace Doctrine\ORM\Event; use Doctrine\ORM\EntityManager; use Doctrine\Common\Persistence\Event\LifecycleEventArgs as BaseLifecycleEventArgs; /** * Lifecycle Events are triggered by the UnitOfWork during lifecycle transitions * of entities. * * @link www.doctrine-project.org * @since 2.0 * @author Roman Borschel * @author Benjamin Eberlei */ class LifecycleEventArgs extends BaseLifecycleEventArgs { /** * Retrieves associated Entity. * * @return object */ public function getEntity() { return $this->getObject(); } /** * Retrieves associated EntityManager. * * @return \Doctrine\ORM\EntityManager */ public function getEntityManager() { return $this->getObjectManager(); } }