protected function doValidate($columns = null) { if (!$this->alreadyInValidation) { $this->alreadyInValidation = true; $retval = null; $failureMap = array(); if ($this->aNgRegInfo !== null) { if (!$this->aNgRegInfo->validate($columns)) { $failureMap = array_merge($failureMap, $this->aNgRegInfo->getValidationFailures()); } } if ($this->aDepartment !== null) { if (!$this->aDepartment->validate($columns)) { $failureMap = array_merge($failureMap, $this->aDepartment->getValidationFailures()); } } if ($this->aClassLevelRelatedByClassLevelId !== null) { if (!$this->aClassLevelRelatedByClassLevelId->validate($columns)) { $failureMap = array_merge($failureMap, $this->aClassLevelRelatedByClassLevelId->getValidationFailures()); } } if ($this->aNgRegTestPeriod !== null) { if (!$this->aNgRegTestPeriod->validate($columns)) { $failureMap = array_merge($failureMap, $this->aNgRegTestPeriod->getValidationFailures()); } } if ($this->aNgStatusApplicant !== null) { if (!$this->aNgStatusApplicant->validate($columns)) { $failureMap = array_merge($failureMap, $this->aNgStatusApplicant->getValidationFailures()); } } if ($this->aNgApplicantCategory !== null) { if (!$this->aNgApplicantCategory->validate($columns)) { $failureMap = array_merge($failureMap, $this->aNgApplicantCategory->getValidationFailures()); } } if ($this->aCountry !== null) { if (!$this->aCountry->validate($columns)) { $failureMap = array_merge($failureMap, $this->aCountry->getValidationFailures()); } } if ($this->aReligion !== null) { if (!$this->aReligion->validate($columns)) { $failureMap = array_merge($failureMap, $this->aReligion->getValidationFailures()); } } if ($this->aRegion !== null) { if (!$this->aRegion->validate($columns)) { $failureMap = array_merge($failureMap, $this->aRegion->getValidationFailures()); } } if ($this->aCity !== null) { if (!$this->aCity->validate($columns)) { $failureMap = array_merge($failureMap, $this->aCity->getValidationFailures()); } } if ($this->aDistrict !== null) { if (!$this->aDistrict->validate($columns)) { $failureMap = array_merge($failureMap, $this->aDistrict->getValidationFailures()); } } if ($this->aSubdistrict !== null) { if (!$this->aSubdistrict->validate($columns)) { $failureMap = array_merge($failureMap, $this->aSubdistrict->getValidationFailures()); } } if ($this->aClassLevelRelatedByLastClass !== null) { if (!$this->aClassLevelRelatedByLastClass->validate($columns)) { $failureMap = array_merge($failureMap, $this->aClassLevelRelatedByLastClass->getValidationFailures()); } } if (($retval = NgTestApplicantPeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } if ($this->collNgTaMedicalRecords !== null) { foreach ($this->collNgTaMedicalRecords as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collNgTestApplicantParentss !== null) { foreach ($this->collNgTestApplicantParentss as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collNgTaAchievementRecords !== null) { foreach ($this->collNgTaAchievementRecords as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collNgTestApplScheds !== null) { foreach ($this->collNgTestApplScheds as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collNgTestApplPayments !== null) { foreach ($this->collNgTestApplPayments as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } $this->alreadyInValidation = false; } return !empty($failureMap) ? $failureMap : true; }