예제 #1
0
 /**
  * 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;
 }
예제 #2
0
파일: Category.php 프로젝트: forsetius/rpg
 /**
  * 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;
 }