src/Flowcode/ShopBundle/Controller/AdminProductOrderController.php
/**
     * Finds and displays a ProductOrder entity.
     *
     * @Route("/{id}", name="admin_order_show")
     * @Method("GET")
     * @Template()
     */
Finds and displays a ProductOrder entity.
Finds and displays a ProductOrder entity .
public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('AmulenShopBundle:ProductOrder')->find($id);
        if (!$entity) {
            throw $this->createNotFoundException('Unable to find ProductOrder entity.');
        }
        $deleteForm = $this->createDeleteForm($id);
        return array(
            'entity' => $entity,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction ( $ id ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ entity = $ em -> getRepository ( 'AmulenShopBundle:ProductOrder' ) -> find ( $ id ) ; if ( ! $ entity ) { throw $ this -> createNotFoundException ( 'Unable to find ProductOrder entity.' ) ; } $ deleteForm = $ this -> createDeleteForm ( $ id ) ; return array ( 'entity' => $ entity , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Finds and displays a ProductOrder entity.
Finds and displays a ProductOrder entity .