public function getVendorsMetaAction()
    {
        $qb = $this->getQueryBuilder();
        $qb->select('b.name');
        $qb->from('CampaignChain\CoreBundle\Entity\Bundle', 'b');
        $qb->groupBy('b.name');
        $qb->orderBy('b.name');
        $query = $qb->getQuery();

        $packages = VariableUtil::arrayFlatten(
                        $query->getResult(\Doctrine\ORM\Query::HYDRATE_ARRAY)
                    );

        // Extract just the vendor names from the query result.
        $vendors = array();
        foreach($packages as $package){
            $packageParts = explode('/', $package);
            $vendor = $packageParts[0];
            if(!in_array($vendor, $vendors))
            array_push($vendors, $vendor);
        }

        return $this->response(
            $vendors
        );
    }