public function addMovie(Movie $movie) { if (!$this->movies->contains($movie)) { $this->movies->add($movie); } }