Submiting data in a ManyToMany relation
问题 I have 2 entities, Parking and Agent, each parking can have many Agents and each Agent can administer many parkings. After I created the relationship, Doctrine automatically added a join table called parking-Agent. Now I'm trying to populate that table through a form, like when creating a new Agent I can give him one or many parkings, or Vice-Versa. I tried adding a choicetype with multiple choices to the form but it didn't work. Can you guys help me ? Entity Agent: <?php /** * @ORM\Entity *