예제 #1
0
 /**
  * Add comments
  *
  * @param \LCV\CommentBundle\Entity\Comment $comments
  * @return Article
  */
 public function addComment(\LCV\CommentBundle\Entity\Comment $comments)
 {
     $this->comments[] = $comments;
     $comments->setArticle($this);
     return $this;
 }
예제 #2
0
 public function addComment(\LCV\CommentBundle\Entity\Comment $comment)
 {
     $this->comments[] = $comment;
     $comment->setAuthor($this);
     return $this;
 }