François 6 жил өмнө
parent
commit
ad62a63951

+ 1 - 0
src/AppBundle/Entity/Film.php

@@ -75,6 +75,7 @@ class Film
     public function setUser($user)
     {
         $this->user = $user;
+        $user->addFilm($this);
     }