Exemplo n.º 1
0
 protected function doValidate($columns = null)
 {
     if (!$this->alreadyInValidation) {
         $this->alreadyInValidation = true;
         $retval = null;
         $failureMap = array();
         if ($this->aSubjectAccal !== null) {
             if (!$this->aSubjectAccal->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aSubjectAccal->getValidationFailures());
             }
         }
         if ($this->aEmployee !== null) {
             if (!$this->aEmployee->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aEmployee->getValidationFailures());
             }
         }
         if ($this->aClassGroup !== null) {
             if (!$this->aClassGroup->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aClassGroup->getValidationFailures());
             }
         }
         if ($this->aLocation !== null) {
             if (!$this->aLocation->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aLocation->getValidationFailures());
             }
         }
         if ($this->aClassSession !== null) {
             if (!$this->aClassSession->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aClassSession->getValidationFailures());
             }
         }
         if ($this->aAcademicCalendar !== null) {
             if (!$this->aAcademicCalendar->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aAcademicCalendar->getValidationFailures());
             }
         }
         if (($retval = VCourseSchedulePeer::doValidate($this, $columns)) !== true) {
             $failureMap = array_merge($failureMap, $retval);
         }
         $this->alreadyInValidation = false;
     }
     return !empty($failureMap) ? $failureMap : true;
 }