protected function doValidate($columns = null) { if (!$this->alreadyInValidation) { $this->alreadyInValidation = true; $retval = null; $failureMap = array(); if ($this->aTestApplicant !== null) { if (!$this->aTestApplicant->validate($columns)) { $failureMap = array_merge($failureMap, $this->aTestApplicant->getValidationFailures()); } } if ($this->aTestSchedule !== null) { if (!$this->aTestSchedule->validate($columns)) { $failureMap = array_merge($failureMap, $this->aTestSchedule->getValidationFailures()); } } if (($retval = TestApplSchedPeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } $this->alreadyInValidation = false; } return !empty($failureMap) ? $failureMap : true; }