예제 #1
0
 protected function doValidate($columns = null)
 {
     if (!$this->alreadyInValidation) {
         $this->alreadyInValidation = true;
         $retval = null;
         $failureMap = array();
         if ($this->aVClassParentRelatedByParent !== null) {
             if (!$this->aVClassParentRelatedByParent->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aVClassParentRelatedByParent->getValidationFailures());
             }
         }
         if ($this->aDepartment !== null) {
             if (!$this->aDepartment->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aDepartment->getValidationFailures());
             }
         }
         if (($retval = VClassParentPeer::doValidate($this, $columns)) !== true) {
             $failureMap = array_merge($failureMap, $retval);
         }
         $this->alreadyInValidation = false;
     }
     return !empty($failureMap) ? $failureMap : true;
 }