/** * Adds the reference for the ExaminationSubject to the CourseSubjectStudentExaminations. * * @param ExaminationSubject $examination_subject * @param PropelPDO $con */ public function updateCourseSubjectStudentExaminations($examination_subject, PropelPDO $con) { //this is done for manual examinations if (!ExaminationSubjectBehavior::enabled()) { return; } $course_subject_student_examinations = CourseSubjectStudentExaminationPeer::retrieveForExaminationSubject($examination_subject); foreach ($course_subject_student_examinations as $course_subject_student_examination) { $examination_subject->addCourseSubjectStudentExamination($course_subject_student_examination); } }
protected function doSave($con = null) { ExaminationSubjectBehavior::disable(); parent::doSave($con); ExaminationSubjectBehavior::enable(); }