POST request on many-to-many association
问题 I have two entities with a many-to-many association: class User extends BaseUser and class Calendar { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="name", type="text") */ private $name; /** * @var string * * @ORM\Column(name="view", type="text") * @Assert\Choice(choices = {"work week", "week", "month", "year"}, message = "Choose a valid view.") */ private $view; /** *