public static function setAvailableStudents(FinalExaminationSubject $final_examination_subject)
 {
     self::$_final_students_subject = array_merge($final_examination_subject->getStudents(), SchoolBehaviourFactory::getInstance()->getAvailableStudentsForFinalExaminationSubject($final_examination_subject));
 }
Esempio n. 2
0
 /**
  * Este metodo retorna las posibes careerSubjects que el estudiante aprobo en el final.
  * Esto es por el caso de que un estudiante de un final de una materia que tiene en dos carreras.
  *
  * @param FinalExaminationSubject $final_examination_subject
  * @return array CareerSubject[]
  */
 public function getCareerSubjectForFinalExaminationSubject(FinalExaminationSubject $final_examination_subject)
 {
     $c = new Criteria();
     $c->add(CourseSubjectStudentPeer::STUDENT_ID, $this->getId());
     $c->add(CourseSubjectStudentPeer::STUDENT_APPROVED_COURSE_SUBJECT_ID, null, Criteria::ISNOTNULL);
     $c->addJoin(CourseSubjectPeer::ID, CourseSubjectStudentPeer::COURSE_SUBJECT_ID);
     $c->addJoin(CourseSubjectPeer::CAREER_SUBJECT_SCHOOL_YEAR_ID, CareerSubjectSchoolYearPeer::ID);
     $c->addJoin(CareerSubjectSchoolYearPeer::CAREER_SUBJECT_ID, CareerSubjectPeer::ID);
     $c->addJoin(CareerSubjectPeer::SUBJECT_ID, $final_examination_subject->getSubjectId());
     return CareerSubjectPeer::doSelectOne($c);
 }