public function isApproved(CourseSubjectStudent $course_subject_student, $average, PropelPDO $con = null)
 {
     $sum = 0;
     foreach ($course_subject_student->getCourseSubjectStudentMarks(null, $con) as $cssm) {
         $sum += $cssm->getMark();
     }
     $first_integrator_mark = $course_subject_student->getMarkFor(self::FIRST_INTEGRATOR_MARK, $con);
     $last_integrator_mark = $course_subject_student->getMarkFor(self::LAST_INTEGRATOR_MARK, $con);
     return $sum > 26 && isset($first_integrator_mark) && $first_integrator_mark->getMark() >= $course_subject_student->getCourseMinimunMarkForCurrentSchoolYear($con) && isset($last_integrator_mark) && $course_subject_student->getMarkFor(self::LAST_INTEGRATOR_MARK, $con)->getMark() >= $course_subject_student->getCourseMinimunMarkForCurrentSchoolYear($con);
 }