src/Zicht/Bundle/AdminBundle/Controller/CRUDController.php
public function moveUpAction($id)
    {
        $repo   = $this->getDoctrine()->getManager()->getRepository($this->admin->getClass());
        $result = $repo->find($id);
        $repo->moveUp($result);

        if ($referer = $this->getRequest()->headers->get('referer')) {
            return $this->redirect($referer);
        } else {
            return new Response('<script>history.go(-1);</script>');
        }
    }
public function moveUpAction($id)
    {
        $repo   = $this->getDoctrine()->getManager()->getRepository($this->admin->getClass());
        $result = $repo->find($id);
        $repo->moveUp($result);

        if ($referer = $this->getRequest()->headers->get('referer')) {
            return $this->redirect($referer);
        } else {
            return new Response('<script>history.go(-1);</script>');
        }
    }
public function moveUpAction ( $ id ) { $ repo = $ this -> getDoctrine ( ) -> getManager ( ) -> getRepository ( $ this -> admin -> getClass ( ) ) ; $ result = $ repo -> find ( $ id ) ; $ repo -> moveUp ( $ result ) ; if ( $ referer = $ this -> getRequest ( ) -> headers -> get ( 'referer' ) ) { return $ this -> redirect ( $ referer ) ; } else { return new Response ( '<script>history.go(-1);</script>' ) ; } }
Move the item up. Used for Tree admins

@param mixed $id
@return \Symfony\Component\HttpFoundation\Response
Move the item up . Used for Tree admins