Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function saveComment(Comments $comment)
 {
     $thread = $comment->getThread();
     if (null === $thread) {
         throw new InvalidArgumentException('The comment must have a thread');
     }
     $comment->save();
     $threadManager = new ThreadManager();
     $threadManager->addCommentNumber($thread);
     return true;
 }