currently i have a form, that generates a Drop-Down-Select from my category-entity:
$builder
->add('category', 'entity',
array('class' => 'TrackerMembersBundle:Category',
'property' => 'title',));
Now i want to generate checkboxes instead, where i can select more than one option…i searched the symfony2 documentation, but could not find an easy way to do it directly from my Entity.Any idea?
Adding
'multiple' => trueto the option array (the last one where class and property are) gives you a multi-select.Then you could override the choice_widget block, using form theming.
Something like this might work: