update PostController

This commit is contained in:
bastien ollier
2024-06-07 16:04:14 +02:00
parent b7a750604a
commit 9afe77b4ed

View File

@@ -59,8 +59,6 @@ class PostController extends AbstractController
$form = $this->createForm(PostType::class, $post); $form = $this->createForm(PostType::class, $post);
$form->handleRequest($request); $form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
$entityManager->flush();
if ($form->isSubmitted() && $form->isValid()) { if ($form->isSubmitted() && $form->isValid()) {
$entityManager->flush(); $entityManager->flush();