public function addSiteFilter($site)
    {
        if ($site instanceof Site) {
            $site = $site->getUid();
        }

        if (!empty($site)) {
            $this->andWhere(
                'cc._uid IN (SELECT i.content_uid FROM BackBee\ClassContent\Indexes\IdxSiteContent i WHERE i.site_uid = :site_uid)'
            )->setParameter('site_uid', $site);
        }
    }