Newscoop\Doctrine\EventDispatcherProxy::postPersist PHP Метод

postPersist() публичный Метод

Dispatch entity.create on postPersist.
public postPersist ( Doctrine\ORM\Event\LifecycleEventArgs $args ) : void
$args Doctrine\ORM\Event\LifecycleEventArgs
Результат void
    public function postPersist(LifecycleEventArgs $args)
    {
        $entityName = $this->getEntityName($args->getEntity());
        $this->dispatcher->dispatch("{$entityName}.create", new GenericEvent($this, array('id' => $this->getEntityId($args->getEntity(), $args->getEntityManager()), 'title' => $this->getEntityTitle($args->getEntity()))));
    }