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

        if ($form->isSubmitted() && $form->isValid()) {
            $em = $this->getDoctrine()->getManager();
            $em->remove($paymentServiceProvider);
            $em->flush();
        }

        return $this->redirectToRoute('ecommerce_paymentserviceprovider_index');
    }
public function deleteAction(Request $request, PaymentServiceProvider $paymentServiceProvider)
    {
        $form = $this->createDeleteForm($paymentServiceProvider);
        $form->handleRequest($request);

        if ($form->isSubmitted() && $form->isValid()) {
            $em = $this->getDoctrine()->getManager();
            $em->remove($paymentServiceProvider);
            $em->flush();
        }

        return $this->redirectToRoute('ecommerce_paymentserviceprovider_index');
    }
public function deleteAction ( Request $ request , PaymentServiceProvider $ paymentServiceProvider ) { $ form = $ this -> createDeleteForm ( $ paymentServiceProvider ) ; $ form -> handleRequest ( $ request ) ; if ( $ form -> isSubmitted ( ) && $ form -> isValid ( ) ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ em -> remove ( $ paymentServiceProvider ) ; $ em -> flush ( ) ; } return $ this -> redirectToRoute ( 'ecommerce_paymentserviceprovider_index' ) ; }
Deletes a PaymentServiceProvider entity.

@Route("/{id}")
@Method("DELETE")
@Template()
Deletes a PaymentServiceProvider entity .