I have a simple structure of three tables and a join table
Tournament
has a OneToMany
with Group
. Group
also has a ManyToMany
with Team
.
this is all well and simple, but as you can see in the above image there is group_tournament_id
key "inherited"(if that's the right term) from the Tournament
table, this to me is very helpful as i can list all teams in the tournament, without looping through all the Group
table.
so, how do i get this field to appear in the jointable
using symfony 2 and doctrine
thanks