Beispiel #1
0
 public static function preBatchJobUpdate(BatchJob $batchJob)
 {
     if ($batchJob->isColumnModified(BatchJobPeer::ERR_NUMBER) || $batchJob->isColumnModified(BatchJobPeer::ERR_TYPE) || $batchJob->isColumnModified(BatchJobPeer::MESSAGE)) {
         $historyRecord = new kBatchHistoryData();
         $historyRecord->setErrNumber($batchJob->getErrNumber());
         $historyRecord->setErrType($batchJob->getErrType());
         $historyRecord->setMessage($batchJob->getMessage());
         $batchJob->addHistoryRecord($historyRecord);
     }
 }