public function addArticle(CmsArticle $article) { $this->articles[] = $article; $article->setAuthor($this); }