Proper way to update bidirectional Many to Many relationship symfony2-doctrine
I did some research, and after reading this and this (and all the related questions) I still can't figure which is the proper way to update a many to many relationship in Symonfy 2 Doctrine. It feels that there should be a very simple way of doing it that I still haven't found. I have this 2 entities: class student_main { /** * @ORM\ManyToMany(targetEntity="support_log", inversedBy="student_main") * @ORM\JoinTable(name="support_log_student") **/ private $support_log; and class support_log { /** * @ORM\ManyToMany(targetEntity="student_main", mappedBy="support_log") **/ private $student; I want