src/Sulu/Bundle/MediaBundle/Controller/CollectionController.php
protected function moveEntity($id, Request $request)
    {
        $destinationId = $this->getRequestParameter($request, 'destination');
        $locale = $this->getRequestParameter($request, 'locale', true);
        $collection = $this->getCollectionManager()->move($id, $locale, $destinationId);
        $view = $this->view($collection);

        return $this->handleView($view);
    }
protected function moveEntity($id, Request $request)
    {
        $destinationId = $this->getRequestParameter($request, 'destination');
        $locale = $this->getRequestParameter($request, 'locale', true);
        $collection = $this->getCollectionManager()->move($id, $locale, $destinationId);
        $view = $this->view($collection);

        return $this->handleView($view);
    }
protected function moveEntity ( $ id , Request $ request ) { $ destinationId = $ this -> getRequestParameter ( $ request , 'destination' ) ; $ locale = $ this -> getRequestParameter ( $ request , 'locale' , true ) ; $ collection = $ this -> getCollectionManager ( ) -> move ( $ id , $ locale , $ destinationId ) ; $ view = $ this -> view ( $ collection ) ; return $ this -> handleView ( $ view ) ; }
Moves an entity into another one.

@param int $id
@param Request $request

@return Response
Moves an entity into another one .