src/Sedona/SBORuntimeBundle/Controller/BaseCrudController.php
protected function dispatchAssociationActionEvent($entity, $action, $target, $eventName)
    {
        $event = new AdminAssociationActionEvent($entity, $action, $target, $this->getUser());
        $this->get('event_dispatcher')->dispatch($eventName, $event);

        return $event;
    }
protected function dispatchAssociationActionEvent($entity, $action, $target, $eventName)
    {
        $event = new AdminAssociationActionEvent($entity, $action, $target, $this->getUser());
        $this->get('event_dispatcher')->dispatch($eventName, $event);

        return $event;
    }
protected function dispatchAssociationActionEvent ( $ entity , $ action , $ target , $ eventName ) { $ event = new AdminAssociationActionEvent ( $ entity , $ action , $ target , $ this -> getUser ( ) ) ; $ this -> get ( 'event_dispatcher' ) -> dispatch ( $ eventName , $ event ) ; return $ event ; }
Generic Association Action dispatcher.

@param $entity
@param $action
@param $target
@param $eventName

@return AdminAssociationActionEvent
Generic Association Action dispatcher .