Build a form having a checkbox for each entity in a doctrine collection
问题 I'm displaying an html table for a filtered collection of entities and I want to display a checkbox in each row as part of a form which will add the selected entities to a session var. I'm thinking that each checkbox should have the entity id as its value and I'll get an array of ids from the form field data (ok, so the value ought to be an indirect ref to the entity, but for the sake of simplicity). I've tried creating a form Type with a single entity type field, mapped to the id property of