src/Sulu/Bundle/ContactBundle/Controller/CustomerController.php
public function cgetAction(Request $request)
    {
        $ids = array_filter(explode(',', $request->get('ids', '')));

        $result = $this->getCustomerManager()->findByIds($ids);

        $list = new CollectionRepresentation(
            $result,
            self::$entityKey
        );
        $view = $this->view($list, 200);

        return $this->handleView($view);
    }
public function cgetAction(Request $request)
    {
        $ids = array_filter(explode(',', $request->get('ids', '')));

        $result = $this->getCustomerManager()->findByIds($ids);

        $list = new CollectionRepresentation(
            $result,
            self::$entityKey
        );
        $view = $this->view($list, 200);

        return $this->handleView($view);
    }
public function cgetAction ( Request $ request ) { $ ids = array_filter ( explode ( ',' , $ request -> get ( 'ids' , '' ) ) ) ; $ result = $ this -> getCustomerManager ( ) -> findByIds ( $ ids ) ; $ list = new CollectionRepresentation ( $ result , self :: $ entityKey ) ; $ view = $ this -> view ( $ list , 200 ) ; return $ this -> handleView ( $ view ) ; }
Returns list of contacts and organizations.

@param Request $request

@return \Symfony\Component\HttpFoundation\Response
Returns list of contacts and organizations .