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->aGradeSpec !== null) { if (!$this->aGradeSpec->validate($columns)) { $failureMap = array_merge($failureMap, $this->aGradeSpec->getValidationFailures()); } } if (($retval = GradeSpecKkmPeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } $this->alreadyInValidation = false; } return !empty($failureMap) ? $failureMap : true; }