protected function doValidate($columns = null) { if (!$this->alreadyInValidation) { $this->alreadyInValidation = true; $retval = null; $failureMap = array(); if ($this->aCourseSchedule !== null) { if (!$this->aCourseSchedule->validate($columns)) { $failureMap = array_merge($failureMap, $this->aCourseSchedule->getValidationFailures()); } } if ($this->aStudent !== null) { if (!$this->aStudent->validate($columns)) { $failureMap = array_merge($failureMap, $this->aStudent->getValidationFailures()); } } if ($this->aCounselingStatus !== null) { if (!$this->aCounselingStatus->validate($columns)) { $failureMap = array_merge($failureMap, $this->aCounselingStatus->getValidationFailures()); } } if ($this->aClassGroup !== null) { if (!$this->aClassGroup->validate($columns)) { $failureMap = array_merge($failureMap, $this->aClassGroup->getValidationFailures()); } } if ($this->aEmployee !== null) { if (!$this->aEmployee->validate($columns)) { $failureMap = array_merge($failureMap, $this->aEmployee->getValidationFailures()); } } if (($retval = ClassCounselPeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } $this->alreadyInValidation = false; } return !empty($failureMap) ? $failureMap : true; }