Doctrine\OXM\Mapping\ClassMetadataInfo::invokeLifecycleCallbacks PHP Метод

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

Dispatches the lifecycle event of the given entity to the registered lifecycle callbacks and lifecycle listeners.
public invokeLifecycleCallbacks ( $lifecycleEvent, XmlEntity $entity, array $arguments = null )
$entity XmlEntity The XmlEntity on which the event occured.
$arguments array
    public function invokeLifecycleCallbacks($lifecycleEvent, $entity, array $arguments = null)
    {
        foreach ($this->lifecycleCallbacks[$lifecycleEvent] as $callback) {
            if ($arguments !== null) {
                call_user_func_array(array($entity, $callback), $arguments);
            } else {
                $entity->{$callback}();
            }
        }
    }