src/Sulu/Bundle/ContactBundle/Controller/PositionController.php
public function cgetAction()
    {
        $list = new CollectionRepresentation(
            $this->getDoctrine()->getRepository(self::$entityName)->findBy([], ['position' => 'ASC']),
            self::$entityKey
        );

        $view = $this->view($list, 200);

        return $this->handleView($view);
    }
public function cgetAction()
    {
        $list = new CollectionRepresentation(
            $this->getDoctrine()->getRepository(self::$entityName)->findBy([], ['position' => 'ASC']),
            self::$entityKey
        );

        $view = $this->view($list, 200);

        return $this->handleView($view);
    }
public function cgetAction ( ) { $ list = new CollectionRepresentation ( $ this -> getDoctrine ( ) -> getRepository ( self :: $ entityName ) -> findBy ( [ ] , [ 'position' => 'ASC' ] ) , self :: $ entityKey ) ; $ view = $ this -> view ( $ list , 200 ) ; return $ this -> handleView ( $ view ) ; }
lists all positions
optional parameter 'flat' calls listAction.

@return \Symfony\Component\HttpFoundation\Response
lists all positions optional parameter flat calls listAction .