Propel form type model w. group_by is rendered without property display Propel form type model w. group_by is rendered without property display symfony symfony

Propel form type model w. group_by is rendered without property display


Would this work?

   $builder->add(        'mychoice',        'entity',        array(                          'class' => 'Foo\\Bar',            'choice_label' => 'title',            'multiple' => false,            'expanded' => false,        )    );

Set the type to entity and add a choice_label property and the property you want to be displayed.