public function configureWidgets()
 {
     $cs = new CareerStudentStatus();
     $this->setWidget('status', new sfWidgetFormChoice(array('choices' => $cs->getOptions(true, $no_graduate = true))));
     $this->getWidget('status')->setDefault(null);
     //filtro solo las carreras en que esta inscripto
     $c = new Criteria();
     $c->add(StudentPeer::ID, $this->getObject()->getStudentId());
     $c->add(CareerStudentPeer::STATUS, CareerStudentStatus::CS_GRADUATE, Criteria::NOT_EQUAL);
     $c->addJoin(CareerStudentPeer::STUDENT_ID, StudentPeer::ID);
     $c->addJoin(CareerStudentPeer::CAREER_ID, CareerPeer::ID);
     $this->setWidget('career_id', new sfWidgetFormPropelChoice(array('model' => 'Career', 'add_empty' => false, 'criteria' => $c)));
     $this->getWidget('career_id')->setLabel('Carrera');
 }
 /**
  * Returns the status as string.
  *
  * @return string
  */
 public function getStatusString()
 {
     $css = CareerStudentStatus::getInstance("StudentCareerSchoolYearStatus");
     return $css->getStringFor($this->getStatus());
 }