EcommerceBundle/Controller/TaxController.php
public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        /** @var Tax $entity */
        $entity = $em->getRepository('EcommerceBundle:Tax')->find($id);

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

        $deleteForm = $this->createDeleteForm($id);
        
        return array(
            'entity' => $entity,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        /** @var Tax $entity */
        $entity = $em->getRepository('EcommerceBundle:Tax')->find($id);

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

        $deleteForm = $this->createDeleteForm($id);
        
        return array(
            'entity' => $entity,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction ( $ id ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; /** @var Tax $entity */ $ entity = $ em -> getRepository ( 'EcommerceBundle:Tax' ) -> find ( $ id ) ; if ( ! $ entity ) { throw $ this -> createNotFoundException ( 'Unable to find Tax entity.' ) ; } $ deleteForm = $ this -> createDeleteForm ( $ id ) ; return array ( 'entity' => $ entity , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Finds and displays an Tax entity.

@param int $id The entity id

@throws NotFoundHttpException
@return array

@Route("/{id}")
@Method("GET")
@Template()
Finds and displays an Tax entity .