public function getActivitiesAction($id)
    {
        $qb = $this->getQueryBuilder();
        $qb->select('a AS activity, c AS campaign, o AS operations, l AS location');
        $qb->from('CampaignChain\CoreBundle\Entity\Activity', 'a');
        $qb->from('CampaignChain\CoreBundle\Entity\Campaign', 'c');
        $qb->from('CampaignChain\CoreBundle\Entity\Location', 'l');
        $qb->from('CampaignChain\CoreBundle\Entity\Operation', 'o');
        $qb->where('a.id = :activity');
        $qb->andWhere('a.id = o.activity');
        $qb->andWhere('a.location = l.id');
        $qb->andWhere('a.campaign = c.id');
        $qb->setParameter('activity', $id);
        $query = $qb->getQuery();

        return $this->response(
            $query->getResult(\Doctrine\ORM\Query::HYDRATE_ARRAY)
        );
    }