aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-04-19 16:48:18 +0200
committerneodarz <neodarz@neodarz.net>2018-04-19 16:48:18 +0200
commit514bd84bdb842765006c32583daafea689c90a77 (patch)
tree708cb5a28609a03e9eb4dc097c6c4a2b2c5c7713
parent2eb78659c21fc93c149912e23f348cedc4fd9c75 (diff)
downloadfilmManager-514bd84bdb842765006c32583daafea689c90a77.zip
filmManager-514bd84bdb842765006c32583daafea689c90a77.tar.xz
Customize manytomany films <-> acteurs joint
-rw-r--r--src/AppBundle/Entity/Film.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/AppBundle/Entity/Film.php b/src/AppBundle/Entity/Film.php
index 7528e68..3c275be 100644
--- a/src/AppBundle/Entity/Film.php
+++ b/src/AppBundle/Entity/Film.php
@@ -58,6 +58,15 @@ class Film
/**
* @ORM\ManyToMany(targetEntity="AppBundle\Entity\Acteur", inversedBy="films")
+ * @ORM\JoinTable(
+ * name="acteur_film",
+ * joinColumns={
+ * @ORM\JoinColumn(name="film_id", referencedColumnName="id")
+ * },
+ * inverseJoinColumns={
+ * @ORM\JoinColumn(name="acteur_id", referencedColumnName="id")
+ * }
+ * )
*/
private $acteurs;