public function configure()
 {
     parent::configure();
     $courses_choices = new sfWidgetFormPropelChoice(array('model' => 'CareerSubjectSchoolYear', 'multiple' => true, "renderer_class" => "csWidgetFormSelectDoubleList"));
     $this->setWidget('subject', new dcWidgetAjaxDependence(array('dependant_widget' => $courses_choices, 'observe_widget_id' => 'course_year', "message_with_no_value" => "Seleccione una carrera y un año", 'get_observed_value_callback' => array(get_class($this), 'getCourses'))));
     $this->setValidator('subject', new sfValidatorPropelChoice(array('model' => 'CareerSubjectSchoolYear', 'multiple' => true, 'required' => true)));
 }
 public function configure()
 {
     parent::configure();
     $this->widgetSchema["school_year_id"] = new sfWidgetFormPropelChoice(array('model' => 'SchoolYear', 'add_empty' => false));
 }