1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/lib/Doctrine/ORM/Event/LifecycleEventArgs.php

24 lines
429 B
PHP
Raw Normal View History

<?php
namespace Doctrine\ORM\Event;
class LifecycleEventArgs extends \Doctrine\Common\EventArgs
{
private $_em;
private $_entity;
public function __construct($entity, \Doctrine\ORM\EntityManager $em)
{
$this->_entity = $entity;
}
public function getEntity()
{
return $this->_entity;
}
public function getEntityManager()
{
return $this->_em;
}
}