protected function doValidate($columns = null) { if (!$this->alreadyInValidation) { $this->alreadyInValidation = true; $retval = null; $failureMap = array(); if ($this->asfGuardUserRelatedByCreatedBy !== null) { if (!$this->asfGuardUserRelatedByCreatedBy->validate($columns)) { $failureMap = array_merge($failureMap, $this->asfGuardUserRelatedByCreatedBy->getValidationFailures()); } } if ($this->asfGuardUserRelatedByOwnerId !== null) { if (!$this->asfGuardUserRelatedByOwnerId->validate($columns)) { $failureMap = array_merge($failureMap, $this->asfGuardUserRelatedByOwnerId->getValidationFailures()); } } if ($this->aDepartment !== null) { if (!$this->aDepartment->validate($columns)) { $failureMap = array_merge($failureMap, $this->aDepartment->getValidationFailures()); } } if ($this->aCampus !== null) { if (!$this->aCampus->validate($columns)) { $failureMap = array_merge($failureMap, $this->aCampus->getValidationFailures()); } } if (($retval = ProjectApplicationPeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } $this->alreadyInValidation = false; } return !empty($failureMap) ? $failureMap : true; }