aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-04-19 14:50:26 +0200
committerneodarz <neodarz@neodarz.net>2018-04-19 14:50:26 +0200
commit2eb78659c21fc93c149912e23f348cedc4fd9c75 (patch)
tree4575c54eb182793b8e698197ef054c634475373a
parentdb3b22009788f04c3ff3a4a47727b4d02183a6c3 (diff)
downloadfilmManager-2eb78659c21fc93c149912e23f348cedc4fd9c75.zip
filmManager-2eb78659c21fc93c149912e23f348cedc4fd9c75.tar.xz
Fix manytomany for have only one table
-rw-r--r--src/AppBundle/Entity/Acteur.php2
-rw-r--r--src/AppBundle/Entity/Film.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/AppBundle/Entity/Acteur.php b/src/AppBundle/Entity/Acteur.php
index bff29e7..6680ef0 100644
--- a/src/AppBundle/Entity/Acteur.php
+++ b/src/AppBundle/Entity/Acteur.php
@@ -30,7 +30,7 @@ class Acteur
/**
- * @ORM\ManyToMany(targetEntity="AppBundle\Entity\Film")
+ * @ORM\ManyToMany(targetEntity="AppBundle\Entity\Film", mappedBy="acteurs")
*/
private $films;
diff --git a/src/AppBundle/Entity/Film.php b/src/AppBundle/Entity/Film.php
index 3ae4f0d..7528e68 100644
--- a/src/AppBundle/Entity/Film.php
+++ b/src/AppBundle/Entity/Film.php
@@ -57,7 +57,7 @@ class Film
private $synopsis;
/**
- * @ORM\ManyToMany(targetEntity="AppBundle\Entity\Acteur")
+ * @ORM\ManyToMany(targetEntity="AppBundle\Entity\Acteur", inversedBy="films")
*/
private $acteurs;