Exemple #1
0
 /**
  * Add or Save TimesheetActionLog
  * @param TimesheetActionLog $timesheetActionLog
  * @return $timesheetActionLog
  */
 public function saveTimesheetActionLog(TimesheetActionLog $timesheetActionLog)
 {
     try {
         if ($timesheetActionLog->getTimesheetActionLogId() == '') {
             $idGenService = new IDGeneratorService();
             $idGenService->setEntity($timesheetActionLog);
             $timesheetActionLog->setTimesheetActionLogId($idGenService->getNextID());
         }
         $timesheetActionLog->save();
         return $timesheetActionLog;
     } catch (Exception $ex) {
         throw new DaoException($ex->getMessage());
     }
 }