/** * Add article * * @param \Forseti\PagesBundle\Entity\Article $article * * @return Attachment */ public function addArticle(\Forseti\PagesBundle\Entity\Article $article) { $this->articles[] = $article; $article->addAttachment($this); return $this; }
/** * Add article * * @param \Forseti\PagesBundle\Entity\Article $article * * @return Category */ public function addArticle(\Forseti\PagesBundle\Entity\Article $article) { $this->articles[] = $article; $article->setCategory($this); return $this; }