コード例 #1
0
 protected function doValidate($columns = null)
 {
     if (!$this->alreadyInValidation) {
         $this->alreadyInValidation = true;
         $retval = null;
         $failureMap = array();
         if ($this->aDivision !== null) {
             if (!$this->aDivision->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aDivision->getValidationFailures());
             }
         }
         if ($this->aAlumno !== null) {
             if (!$this->aAlumno->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aAlumno->getValidationFailures());
             }
         }
         if (($retval = RelAlumnoDivisionPeer::doValidate($this, $columns)) !== true) {
             $failureMap = array_merge($failureMap, $retval);
         }
         $this->alreadyInValidation = false;
     }
     return !empty($failureMap) ? $failureMap : true;
 }