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