src/Kunstmaan/MenuBundle/Controller/MenuItemAdminListController.php
public function moveDownAction(Request $request, $menuid, $item)
    {
        $em = $this->getEntityManager();
        $repo = $em->getRepository($this->container->getParameter('kunstmaan_menu.entity.menuitem.class'));
        $item = $repo->find($item);

        if ($item) {
            $repo->moveDown($item);
        }

        return new RedirectResponse(
            $this->generateUrl('kunstmaanmenubundle_admin_menuitem', array('menuid' => $menuid))
        );
    }
public function moveDownAction(Request $request, $menuid, $item)
    {
        $em = $this->getEntityManager();
        $repo = $em->getRepository($this->container->getParameter('kunstmaan_menu.entity.menuitem.class'));
        $item = $repo->find($item);

        if ($item) {
            $repo->moveDown($item);
        }

        return new RedirectResponse(
            $this->generateUrl('kunstmaanmenubundle_admin_menuitem', array('menuid' => $menuid))
        );
    }
public function moveDownAction ( Request $ request , $ menuid , $ item ) { $ em = $ this -> getEntityManager ( ) ; $ repo = $ em -> getRepository ( $ this -> container -> getParameter ( 'kunstmaan_menu.entity.menuitem.class' ) ) ; $ item = $ repo -> find ( $ item ) ; if ( $ item ) { $ repo -> moveDown ( $ item ) ; } return new RedirectResponse ( $ this -> generateUrl ( 'kunstmaanmenubundle_admin_menuitem' , array ( 'menuid' => $ menuid ) ) ) ; }
Move an item down in the list.

@Route("{menuid}/items/{item}/move-down", name="kunstmaanmenubundle_admin_menuitem_move_down", methods={"GET"})

@return RedirectResponse
Move an item down in the list .