. */ namespace Doctrine\ORM\Event; use Doctrine\ORM\EntityManager; /** * Provides event arguments for the preFlush event. * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @author Roman Borschel * @author Benjamin Eberlei */ class OnFlushEventArgs extends \Doctrine\Common\EventArgs { /** * @var Doctirne\ORM\EntityManager */ private $em; //private $entitiesToPersist = array(); //private $entitiesToRemove = array(); /** * Constructor. * * @param Doctrine\ORM\EntityManager $em */ public function __construct(EntityManager $em) { $this->em = $em; } /** * Retrieve associated EntityManager. * * @return Doctrine\ORM\EntityManager */ public function getEntityManager() { return $this->em; } /* public function addEntityToPersist($entity) { } public function addEntityToRemove($entity) { } public function addEntityToUpdate($entity) { } public function getEntitiesToPersist() { return $this->_entitiesToPersist; } */ }