public function deleteAction(Request $request, $id)
    {

        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('EcommerceBundle:Transaction')->find($id);

        if (!$entity) {
            throw $this->createNotFoundException('Unable to find Transaction entity.');
        }

        $em->remove($entity);
        $em->flush();
        
         $this->get('session')->getFlashBag()->add('info', 'transaction.deleted');
         
        return array();
    }