Beispiel #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->aSubjectCurr !== null) {
             if (!$this->aSubjectCurr->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aSubjectCurr->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 = CourseSchedulePeer::doValidate($this, $columns)) !== true) {
             $failureMap = array_merge($failureMap, $retval);
         }
         if ($this->collCourseScheduleTutors !== null) {
             foreach ($this->collCourseScheduleTutors as $referrerFK) {
                 if (!$referrerFK->validate($columns)) {
                     $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
                 }
             }
         }
         if ($this->collCourseScheduleDetails !== null) {
             foreach ($this->collCourseScheduleDetails as $referrerFK) {
                 if (!$referrerFK->validate($columns)) {
                     $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
                 }
             }
         }
         if ($this->collVCourseSessions !== null) {
             foreach ($this->collVCourseSessions as $referrerFK) {
                 if (!$referrerFK->validate($columns)) {
                     $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
                 }
             }
         }
         $this->alreadyInValidation = false;
     }
     return !empty($failureMap) ? $failureMap : true;
 }