public function deleteAction(Request $request, SakonninTemplate $sakonninTemplate)
    {
        $form = $this->createDeleteForm($sakonninTemplate);
        $form->handleRequest($request);

        if ($form->isSubmitted() && $form->isValid()) {
            $em = $this->getDoctrineManager();
            $em->remove($sakonninTemplate);
            $em->flush();
        }

        return $this->redirectToRoute('sakonnintemplate_index');
    }
public function deleteAction(Request $request, SakonninTemplate $sakonninTemplate)
    {
        $form = $this->createDeleteForm($sakonninTemplate);
        $form->handleRequest($request);

        if ($form->isSubmitted() && $form->isValid()) {
            $em = $this->getDoctrineManager();
            $em->remove($sakonninTemplate);
            $em->flush();
        }

        return $this->redirectToRoute('sakonnintemplate_index');
    }
public function deleteAction ( Request $ request , SakonninTemplate $ sakonninTemplate ) { $ form = $ this -> createDeleteForm ( $ sakonninTemplate ) ; $ form -> handleRequest ( $ request ) ; if ( $ form -> isSubmitted ( ) && $ form -> isValid ( ) ) { $ em = $ this -> getDoctrineManager ( ) ; $ em -> remove ( $ sakonninTemplate ) ; $ em -> flush ( ) ; } return $ this -> redirectToRoute ( 'sakonnintemplate_index' ) ; }
Deletes a sakonninTemplate entity.

@Route("/{id}", name="sakonnintemplate_delete", methods={"DELETE"})
Deletes a sakonninTemplate entity .