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