Build a form having a checkbox for each entity in a doctrine collection

I think this will answer your question. Forget the FooEntitySelectionType. Add a property_path field option to FooEntitySelectByIdentityType and set the data_class option to null: class FooEntitySelectByIdentityType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add(‘foo_id’, ‘entity’, array( ‘required’ => false, ‘class’ => ‘MeMyBundle:FooEntity’, ‘property’ => ‘id’, ‘property_path’ => ‘[id]’, # in square brackets! … Read more