public function configure() { sfContext::getInstance()->getConfiguration()->loadHelpers(array('I18N')); //Set the formatter to the form $sf_formatter_revisited = new sfWidgetFormSchemaFormatterRevisited($this); $this->getWidgetSchema()->addFormFormatter('Revisited', $sf_formatter_revisited); $this->getWidgetSchema()->setFormFormatterName('Revisited'); $this->setDefault('id', $this->getObject()->getId()); $this->setWidget('id', new sfWidgetFormInputHidden()); $this->setValidator('id', new sfValidatorPropelChoice(array('model' => 'CourseSubjectStudent', 'required' => 'true'))); $this->mark_fields = $this->configureMarks(); $this->close_field = $this->configureCloseCourse(); $this->examination_fields = $this->configureExaminationSubjects(); $this->student_approved_career_subject = $this->configureStudentApprovedCareerSubject(); //$this->repproved_course_subjects = $this->configureRepprovedCourseSubjects(); $this->getWidgetSchema()->setNameFormat('course_subject_student[%s]'); parent::configure(); }