public function getObjectsAction()
    {
        $qb = $this->getQueryBuilder();
        $qb->select(\CampaignChain\CoreBundle\Controller\REST\LocationController::SELECT_STATEMENT);
        $qb->from('CampaignChain\CoreBundle\Entity\Location', 'l');
        $qb->where('l.channel IS NULL');
        $qb->orderBy('l.name');
        $qb = $this->getModuleRelation($qb, 'l.locationModule', self::MODULE_URI);
        $qb = $this->getLocationChannelId($qb);
        $query = $qb->getQuery();

        return $this->response(
            $query->getResult(\Doctrine\ORM\Query::HYDRATE_ARRAY)
        );
    }
public function getObjectsAction()
    {
        $qb = $this->getQueryBuilder();
        $qb->select(\CampaignChain\CoreBundle\Controller\REST\LocationController::SELECT_STATEMENT);
        $qb->from('CampaignChain\CoreBundle\Entity\Location', 'l');
        $qb->where('l.channel IS NULL');
        $qb->orderBy('l.name');
        $qb = $this->getModuleRelation($qb, 'l.locationModule', self::MODULE_URI);
        $qb = $this->getLocationChannelId($qb);
        $query = $qb->getQuery();

        return $this->response(
            $query->getResult(\Doctrine\ORM\Query::HYDRATE_ARRAY)
        );
    }
public function getObjectsAction ( ) { $ qb = $ this -> getQueryBuilder ( ) ; $ qb -> select ( \ CampaignChain \ CoreBundle \ Controller \ REST \ LocationController :: SELECT_STATEMENT ) ; $ qb -> from ( 'CampaignChain\CoreBundle\Entity\Location' , 'l' ) ; $ qb -> where ( 'l.channel IS NULL' ) ; $ qb -> orderBy ( 'l.name' ) ; $ qb = $ this -> getModuleRelation ( $ qb , 'l.locationModule' , self :: MODULE_URI ) ; $ qb = $ this -> getLocationChannelId ( $ qb ) ; $ query = $ qb -> getQuery ( ) ; return $ this -> response ( $ query -> getResult ( \ Doctrine \ ORM \ Query :: HYDRATE_ARRAY ) ) ; }
Get a list of eZ Platform content object Locations.

Example Request
===============

GET /api/{version}/p/campaignchain/location-ezplatform/objects

Example Response
================
{
"response": [
{
"id": 108,
"identifier": "62",
"name": "eZ Publish Tutorials",
"status": "unpublished",
"createdDate": "2015-12-01T09:37:39+0000",
"operationId": "92",
"channelId": "8"
}
]
}

@ApiDoc(
section="Packages: eZ Platform"
)
Get a list of eZ Platform content object Locations .