Using Symfony2 and orm.yml files to map the entities into the database how can I create a 3-ary relationship between entities A,B,C that result in a D table that contain A_PrimaryKey, B_PrimaryKey, C_PrimaryKey the relation between the entities are this:
A-B manytomany
A-C manytomany
B-C manytomany
So, your basic model would look like this:
The yml for A would look like this:
You can just repeat this with B and C. For D, it would look something like this:
Give it a try. Maybe try to map A and D first. If this works, continue with B. So you are more likely to catch errors on the way!