Beispiel #1
0
 protected function doValidate($columns = null)
 {
     if (!$this->alreadyInValidation) {
         $this->alreadyInValidation = true;
         $retval = null;
         $failureMap = array();
         if ($this->aSchedule !== null) {
             if (!$this->aSchedule->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aSchedule->getValidationFailures());
             }
         }
         if ($this->aScheduleDetail !== null) {
             if (!$this->aScheduleDetail->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aScheduleDetail->getValidationFailures());
             }
         }
         if ($this->aGradeComponent !== null) {
             if (!$this->aGradeComponent->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aGradeComponent->getValidationFailures());
             }
         }
         if ($this->aEmployee !== null) {
             if (!$this->aEmployee->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aEmployee->getValidationFailures());
             }
         }
         if (($retval = VAbsenceEkskulPeer::doValidate($this, $columns)) !== true) {
             $failureMap = array_merge($failureMap, $retval);
         }
         $this->alreadyInValidation = false;
     }
     return !empty($failureMap) ? $failureMap : true;
 }