public function saveComment(Request $request, Match $match, User $user)
 {
     $comment = new Comment();
     $form = $this->formFactory->create(new CommentType(), $comment, ['action' => $this->router->generate('basket_planner_comment_create', ['id' => $match->getId()])]);
     $form->handleRequest($request);
     $results['form'] = $form->createView();
     $results['redirectToMatch'] = false;
     if ($form->isValid()) {
         if (!$match->getPlayers()->contains($user)) {
             $this->session->getFlashBag()->add('error', 'Tik prisijungę žaidėjai gali rašyti žinutes.');
         } else {
             $comment->setCreatedAt(new \DateTime('now'));
             $comment->setMatch($match);
             $comment->setUser($user);
             $this->em->persist($comment);
             $this->em->flush();
         }
         $results['redirectToMatch'] = true;
     }
     return $results;
 }