    public function pinCommentAction(ProjectComment $comment)
    {
        $comment->setPinned(!$comment->isPinned());
        try {
            $this->repository->saveComment($comment);
        } catch (\Exception $ex) {
            $this->flashUpdateException($ex);
        }

        return $this->redirectToRoute('project_details', ['id' => $comment->getProject()->getId()]);
    }