From 6c515342d70ba882ac46fea6c41ff87f11708d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 22 Jan 2015 09:47:32 +0100 Subject: [PATCH] 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. --- Resources/config/doctrine/Person.orm.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Resources/config/doctrine/Person.orm.yml b/Resources/config/doctrine/Person.orm.yml index 06cdd012e..63f0381b4 100644 --- a/Resources/config/doctrine/Person.orm.yml +++ b/Resources/config/doctrine/Person.orm.yml @@ -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: { }