fix joinColumn definition bug in Person

Due to bug http://www.doctrine-project.org/jira/browse/DDC-2742 (?), the relation between person and spoken_languages was broken. We configure the relation explicitly (providing joincolumns) to avoid this bug.
This commit is contained in:
Julien Fastré 2015-01-22 09:47:32 +01:00
parent af66ac2c1a
commit 6c515342d7

View File

@ -61,4 +61,10 @@ Chill\PersonBundle\Entity\Person:
targetEntity: Chill\MainBundle\Entity\Language
joinTable:
name: persons_spoken_languages
joinColumns:
person_id:
referencedColumnName: id
inverseJoinColumns:
language_id:
referencedColumnName: id
lifecycleCallbacks: { }