Esempio n. 1
0
 protected function doValidate($columns = null)
 {
     if (!$this->alreadyInValidation) {
         $this->alreadyInValidation = true;
         $retval = null;
         $failureMap = array();
         if ($this->aStudent !== null) {
             if (!$this->aStudent->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aStudent->getValidationFailures());
             }
         }
         if ($this->aSubjectCurr !== null) {
             if (!$this->aSubjectCurr->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aSubjectCurr->getValidationFailures());
             }
         }
         if ($this->aClassGroup !== null) {
             if (!$this->aClassGroup->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aClassGroup->getValidationFailures());
             }
         }
         if ($this->aAcademicCalendar !== null) {
             if (!$this->aAcademicCalendar->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aAcademicCalendar->getValidationFailures());
             }
         }
         if ($this->aGradeSpec !== null) {
             if (!$this->aGradeSpec->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aGradeSpec->getValidationFailures());
             }
         }
         if (($retval = StudentTryoutPeer::doValidate($this, $columns)) !== true) {
             $failureMap = array_merge($failureMap, $retval);
         }
         $this->alreadyInValidation = false;
     }
     return !empty($failureMap) ? $failureMap : true;
 }