/**
  * This method check the conditions of repetition of a year.
  *
  * @param Student $student
  * @param StudentCareerSchoolYear $student_career_school_year
  * @return boolean
  */
 public function checkRepeationCondition(Student $student, StudentCareerSchoolYear $student_career_school_year)
 {
     //IF the current year is the last year of the career, the students not repeat. OR if the year  = 1
     if ($student_career_school_year->isLastYear() || $student_career_school_year->getYear() == 1) {
         return false;
     }
     return parent::checkRepeationCondition($student, $student_career_school_year);
 }
 public function createStudentApprovedCourseSubject($course_subject_student, $average, $con)
 {
     if ($average < 7) {
         $average = 7;
     }
     parent::createStudentApprovedCourseSubject($course_subject_student, $average, $con);
 }