Пример #1
0
 protected function doValidate($columns = null)
 {
     if (!$this->alreadyInValidation) {
         $this->alreadyInValidation = true;
         $retval = null;
         $failureMap = array();
         if ($this->aEstablecimiento !== null) {
             if (!$this->aEstablecimiento->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aEstablecimiento->getValidationFailures());
             }
         }
         if (($retval = EscalanotaPeer::doValidate($this, $columns)) !== true) {
             $failureMap = array_merge($failureMap, $retval);
         }
         if ($this->collBoletinConceptuals !== null) {
             foreach ($this->collBoletinConceptuals as $referrerFK) {
                 if (!$referrerFK->validate($columns)) {
                     $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
                 }
             }
         }
         if ($this->collBoletinActividadess !== null) {
             foreach ($this->collBoletinActividadess as $referrerFK) {
                 if (!$referrerFK->validate($columns)) {
                     $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
                 }
             }
         }
         if ($this->collExamens !== null) {
             foreach ($this->collExamens as $referrerFK) {
                 if (!$referrerFK->validate($columns)) {
                     $failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
                 }
             }
         }
         $this->alreadyInValidation = false;
     }
     return !empty($failureMap) ? $failureMap : true;
 }