Ejemplo n.º 1
0
 private function entryEditorTypeHandle(MotivationEntry $t)
 {
     if ($t == null) {
         throw new Exceptions\NullPointerException("Argument MotivationTax cannot be null");
     }
     try {
         $u = $this->getMixId($t->getEditor());
         if ($u !== null) {
             $editor = $this->userService->getUser($u, false);
             $t->setEditor($editor);
         }
     } catch (\Exception $ex) {
         $this->logError($ex->getMessage());
         throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious());
     }
     return $t;
 }