protected function doValidate($columns = null) { if (!$this->alreadyInValidation) { $this->alreadyInValidation = true; $retval = null; $failureMap = array(); if ($this->aCourseSchedule !== null) { if (!$this->aCourseSchedule->validate($columns)) { $failureMap = array_merge($failureMap, $this->aCourseSchedule->getValidationFailures()); } } if ($this->aClassSession !== null) { if (!$this->aClassSession->validate($columns)) { $failureMap = array_merge($failureMap, $this->aClassSession->getValidationFailures()); } } if ($this->aSubjectGrading !== null) { if (!$this->aSubjectGrading->validate($columns)) { $failureMap = array_merge($failureMap, $this->aSubjectGrading->getValidationFailures()); } } if ($this->aStudent !== null) { if (!$this->aStudent->validate($columns)) { $failureMap = array_merge($failureMap, $this->aStudent->getValidationFailures()); } } if ($this->aStudentAbsence !== null) { if (!$this->aStudentAbsence->validate($columns)) { $failureMap = array_merge($failureMap, $this->aStudentAbsence->getValidationFailures()); } } if ($this->aClassGroup !== null) { if (!$this->aClassGroup->validate($columns)) { $failureMap = array_merge($failureMap, $this->aClassGroup->getValidationFailures()); } } if ($this->aSchedule !== null) { if (!$this->aSchedule->validate($columns)) { $failureMap = array_merge($failureMap, $this->aSchedule->getValidationFailures()); } } if ($this->aEmployee !== null) { if (!$this->aEmployee->validate($columns)) { $failureMap = array_merge($failureMap, $this->aEmployee->getValidationFailures()); } } if (($retval = ClassAgendaPeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } if ($this->collClassAgendaFiles !== null) { foreach ($this->collClassAgendaFiles as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collClassAbsences !== null) { foreach ($this->collClassAbsences as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } $this->alreadyInValidation = false; } return !empty($failureMap) ? $failureMap : true; }