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->aReligionRelatedByReligionId !== null) { if (!$this->aReligionRelatedByReligionId->validate($columns)) { $failureMap = array_merge($failureMap, $this->aReligionRelatedByReligionId->getValidationFailures()); } } if ($this->aReligionRelatedBySpouseReligionId !== null) { if (!$this->aReligionRelatedBySpouseReligionId->validate($columns)) { $failureMap = array_merge($failureMap, $this->aReligionRelatedBySpouseReligionId->getValidationFailures()); } } if ($this->aEmployeeLevel !== null) { if (!$this->aEmployeeLevel->validate($columns)) { $failureMap = array_merge($failureMap, $this->aEmployeeLevel->getValidationFailures()); } } if ($this->aMaritalStatus !== null) { if (!$this->aMaritalStatus->validate($columns)) { $failureMap = array_merge($failureMap, $this->aMaritalStatus->getValidationFailures()); } } if ($this->aEmployeeDivision !== null) { if (!$this->aEmployeeDivision->validate($columns)) { $failureMap = array_merge($failureMap, $this->aEmployeeDivision->getValidationFailures()); } } if (($retval = EmployeeDetailPeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } $this->alreadyInValidation = false; } return !empty($failureMap) ? $failureMap : true; }