function _doRejectAction()
 {
     $eo = $this->getEventOccurrence();
     if ($eo) {
         $eo->delete(true);
     }
     parent::_doRejectAction();
 }
 public function __construct(\MapasCulturais\Entities\Request $request)
 {
     $this->request = $request;
     parent::__construct($request->getRequestMessage());
 }
 function setDestination(\MapasCulturais\Entity $agent)
 {
     $this->metadata['type'] = $agent->canUser('@control') ? self::TYPE_REQUEST : self::TYPE_GIVE;
     parent::setDestination($agent);
 }