Exemple #1
0
 private function taxEditorTypeHandle(SeasonTax $t)
 {
     if ($t == null) {
         throw new Exceptions\NullPointerException("Argument SeasonTax cannot be null", 0);
     }
     try {
         $u = $this->getMixId($t->getEditor());
         if ($u !== null) {
             $editor = $this->getUserService()->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;
 }