public function removeArticleTopic(Article $article) { if (!$this->articles->contains($article)) { $article->removeTopic($this); $this->articles->removeElement($article); } return $this; }