Symfony: ManyToMany table extra columns
问题 I have a many to many table for User and House , called user_house . Instead of just two columns: user_id and house_id, i want to add 3 more: eg action, created_at, updated_at. How can I do this? I cannot find any relevant docs on this. The following just creates a separate table with two columns in it. class User extends EntityBase { ... /** * @ORM\ManyToMany(targetEntity="AppBundle\Entity\House") */ protected $action; Basically, what I want to achieve is: in the user_house table the