public function removeArticle(Article $article) { if ($this->articles->contains($article)) { $article->removeSnippet($this); $this->articles->removeElement($article); } return $this; }
public function removeSnippetFromArticle(Snippet $snippet, \Newscoop\Entity\Article $article) { $snippet->removeArticle($article); $this->save($snippet); }