src/ActiveDoctrine/Entity/Entity.php
public function callEvent($event_name)
    {
        $classname = get_called_class();
        if (!isset(static::$callbacks[$classname][$event_name])) {
            return;
        }

        foreach (static::$callbacks[$classname][$event_name] as $callback) {
            $callback($this);
        }
    }
public function callEvent($event_name)
    {
        $classname = get_called_class();
        if (!isset(static::$callbacks[$classname][$event_name])) {
            return;
        }

        foreach (static::$callbacks[$classname][$event_name] as $callback) {
            $callback($this);
        }
    }
public function callEvent ( $ event_name ) { $ classname = get_called_class ( ) ; if ( ! isset ( static :: $ callbacks [ $ classname ] [ $ event_name ] ) ) { return ; } foreach ( static :: $ callbacks [ $ classname ] [ $ event_name ] as $ callback ) { $ callback ( $ this ) ; } }
Call an event on this entity, calling the registering
callbacks.

@param string $event_name
Call an event on this entity calling the registering callbacks .