35 lines
678 B
PHP
35 lines
678 B
PHP
<?php
|
|
|
|
namespace Doctrine\ORM\Event;
|
|
|
|
use Doctrine\Common\EventArgs;
|
|
use Doctrine\ORM\EntityManagerInterface;
|
|
|
|
/**
|
|
* Event triggers in the end of flush after all actions and clears in uow
|
|
* Flush can be called inside listeners of this event
|
|
*/
|
|
class CleanPostFlushEventArgs extends EventArgs
|
|
{
|
|
/**
|
|
* @var EntityManagerInterface
|
|
*/
|
|
private $em;
|
|
|
|
/**
|
|
* @param EntityManagerInterface $em
|
|
*/
|
|
public function __construct(EntityManagerInterface $em)
|
|
{
|
|
$this->em = $em;
|
|
}
|
|
|
|
/**
|
|
* @return EntityManagerInterface
|
|
*/
|
|
public function getEntityManager(): EntityManagerInterface
|
|
{
|
|
return $this->em;
|
|
}
|
|
}
|