aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-04-19 14:36:22 +0200
committerneodarz <neodarz@neodarz.net>2018-04-19 14:36:22 +0200
commitdb3b22009788f04c3ff3a4a47727b4d02183a6c3 (patch)
tree74cd1544278bc8e7501a6efd73a3a58f1c7be708
parentf98c49f8104c1a226c9a75096119944a147e2e83 (diff)
downloadfilmManager-db3b22009788f04c3ff3a4a47727b4d02183a6c3.zip
filmManager-db3b22009788f04c3ff3a4a47727b4d02183a6c3.tar.xz
Beautify code
-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 b03e002..bff29e7 100644
--- a/src/AppBundle/Entity/Acteur.php
+++ b/src/AppBundle/Entity/Acteur.php
@@ -85,7 +85,7 @@ class Acteur
*/
public function addFilm(\AppBundle\Entity\Film $film)
{
- $this->films[] = $film;
+ $this->films->add($film);
return $this;
}
diff --git a/src/AppBundle/Entity/Film.php b/src/AppBundle/Entity/Film.php
index 952b437..3ae4f0d 100644
--- a/src/AppBundle/Entity/Film.php
+++ b/src/AppBundle/Entity/Film.php
@@ -208,7 +208,7 @@ class Film
*/
public function addActeur(\AppBundle\Entity\Acteur $acteur)
{
- $this->acteurs[] = $acteur;
+ $this->acteurs->add($acteur);
return $this;
}