update PostController
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user