CoreExtraBundle/Controller/MenuItemController.php
public function showAction(MenuItem $menuItem)
    {
        $em = $this->getDoctrine()->getManager();
        $deleteForm = $this->createDeleteForm($menuItem);
//        $menuItem = $em->getRepository('CoreExtraBundle:MenuItem')->getItemsWithTranslations($menuItem);
        
        return array(
            'entity' => $menuItem,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction(MenuItem $menuItem)
    {
        $em = $this->getDoctrine()->getManager();
        $deleteForm = $this->createDeleteForm($menuItem);
//        $menuItem = $em->getRepository('CoreExtraBundle:MenuItem')->getItemsWithTranslations($menuItem);
        
        return array(
            'entity' => $menuItem,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction ( MenuItem $ menuItem ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ deleteForm = $ this -> createDeleteForm ( $ menuItem ) ; //        $menuItem = $em->getRepository('CoreExtraBundle:MenuItem')->getItemsWithTranslations($menuItem); return array ( 'entity' => $ menuItem , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Finds and displays a MenuItem entity.

@Route("/admin/menuitems/{id}")
@Method("GET")
@Template()
Finds and displays a MenuItem entity .