public function unpublishComment(Blog $blog, Comment $existingComment)
    {
        $existingComment->unpublish();
        $this->om->flush();

        $this->trackingManager->dispatchCommentPublishEvent($existingComment->getPost(), $existingComment);

        return $existingComment;
    }
public function unpublishComment(Blog $blog, Comment $existingComment)
    {
        $existingComment->unpublish();
        $this->om->flush();

        $this->trackingManager->dispatchCommentPublishEvent($existingComment->getPost(), $existingComment);

        return $existingComment;
    }
public function unpublishComment ( Blog $ blog , Comment $ existingComment ) { $ existingComment -> unpublish ( ) ; $ this -> om -> flush ( ) ; $ this -> trackingManager -> dispatchCommentPublishEvent ( $ existingComment -> getPost ( ) , $ existingComment ) ; return $ existingComment ; }
unpublish a comment.

@param Blog    $blog
@param Comment $comment
@param User    $user

@return Comment
unpublish a comment .