Association and join table

New topics about Symfony 2 should go here

Moderators: dcobalt, tiagojsag

Association and join table

Postby Soraze » Mon Mar 12, 2012 12:56 pm

Hi,

what is the difference between using @JoinTable and creating an association OneToMany, OneToOne etc. ? (the association automatically handle the join table, doesn't it?)

Thanks
Soraze
Junior Member
 
Posts: 9
Joined: Sat Feb 25, 2012 3:12 pm

Re: Association and join table

Postby blogsh » Mon Mar 12, 2012 10:26 pm

The @Join* annotations are there to customize the names of the tables/fields whereas some default values are used if you only define the association annotations.
http://docs.doctrine-project.org/projec ... g-defaults
blogsh
Faithful Member
 
Posts: 501
Joined: Thu Mar 03, 2011 9:35 pm
Location: Germany


Return to General Symfony 2 discussion

Who is online

Users browsing this forum: Google [Bot] and 3 guests