Exemple #1
0
 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->aDepartment !== null) {
             if (!$this->aDepartment->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aDepartment->getValidationFailures());
             }
         }
         if ($this->aCatCategory !== null) {
             if (!$this->aCatCategory->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aCatCategory->getValidationFailures());
             }
         }
         if ($this->aColStatus !== null) {
             if (!$this->aColStatus->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aColStatus->getValidationFailures());
             }
         }
         if ($this->aColLocation !== null) {
             if (!$this->aColLocation->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aColLocation->getValidationFailures());
             }
         }
         if (($retval = VOpacPeer::doValidate($this, $columns)) !== true) {
             $failureMap = array_merge($failureMap, $retval);
         }
         $this->alreadyInValidation = false;
     }
     return !empty($failureMap) ? $failureMap : true;
 }