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