protected function doValidate($columns = null) { if (!$this->alreadyInValidation) { $this->alreadyInValidation = true; $retval = null; $failureMap = array(); if ($this->aPayerTypeRelatedByParent !== null) { if (!$this->aPayerTypeRelatedByParent->validate($columns)) { $failureMap = array_merge($failureMap, $this->aPayerTypeRelatedByParent->getValidationFailures()); } } if (($retval = PayerTypePeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } if ($this->collVPayerTypes !== null) { foreach ($this->collVPayerTypes as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collAcademicCosts !== null) { foreach ($this->collAcademicCosts as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collVAcaCosts !== null) { foreach ($this->collVAcaCosts as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collVAcaCostElses !== null) { foreach ($this->collVAcaCostElses as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collStudentTypes !== null) { foreach ($this->collStudentTypes as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } if ($this->collVStudentTypes !== null) { foreach ($this->collVStudentTypes as $referrerFK) { if (!$referrerFK->validate($columns)) { $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures()); } } } $this->alreadyInValidation = false; } return !empty($failureMap) ? $failureMap : true; }