Exemplo n.º 1
0
 public function configure()
 {
     parent::configure();
     $this->widgetSchema['destinatario_id'] = new sfWidgetFormInputHidden();
     $this->widgetSchema['assunto'] = new sfWidgetFormInputHidden();
     $this->widgetSchema['conteudo']->setLabel('Resposta');
 }
 public function configure()
 {
     parent::configure();
     $choices = array('' => '');
     $this->widgetSchema['destinatario_id'] = new sfWidgetFormDoctrineChoice(array('model' => 'Aluno', 'add_empty' => true));
     $this->widgetSchema->setLabels(array('destinatario_id' => 'Destinatário'));
 }