public function getResult($with_mark = true) { $career_subject = CareerSubjectSchoolYearPeer::retrieveByCareerSubject($this->getCareerSubject()); $config = $career_subject->getConfiguration(); if ($config != null && !$config->isNumericalMark()) { $letter_mark = LetterMarkPeer::getLetterMarkByValue((int) $this->getMark()); $mark = $letter_mark->getLetter(); } else { $mark = $this->getMark(); } return $with_mark ? 'Aprobado ' . $mark : 'Aprobado'; }