Skip to content

Commit 4045695

Browse files
committed
removed unnecessary code
1 parent 7ed6b8b commit 4045695

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Resources/skeleton/crud/controller/Controller.tpl.php

-4
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ public function new(Request $request)
5959
*/
6060
public function show(<?= $entity_class_name; ?> $<?= $entity_var_singular; ?>)
6161
{
62-
$deleteForm = $this->createDeleteForm($<?= $entity_var_singular; ?>);
63-
6462
return $this->render('<?= $route_name; ?>/show.html.twig', [
6563
'<?= $entity_var_singular; ?>' => $<?= $entity_var_singular; ?>,
6664
]);
@@ -75,8 +73,6 @@ public function edit(Request $request, <?= $entity_class_name; ?> $<?= $entity_v
7573
$form = $this->createForm(<?= $form_class_name; ?>::class, $<?= $entity_var_singular; ?>);
7674
$form->handleRequest($request);
7775

78-
$deleteForm = $this->createDeleteForm($<?= $entity_var_singular; ?>);
79-
8076
if ($form->isSubmitted() && $form->isValid()) {
8177
$this->getDoctrine()->getManager()->flush();
8278

0 commit comments

Comments
 (0)