Пример #1
0
 private function ownerTypeHandle(EventParticipation $e)
 {
     try {
         $editor = null;
         if ($this->getUserService() !== null) {
             $id = $this->getMixId($e->getOwner());
             if ($id !== null) {
                 $editor = $this->getUserService()->getUser($id, false);
             }
         }
         $e->setOwner($editor);
     } catch (\Exception $ex) {
         $this->logError($ex->getMessage());
         throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious());
     }
 }