public function andSiteIs(Site $site)
    {
        $suffix = $this->getSuffix();

        return $this->andWhere($this->getSectionAlias().'._site = :site'.$suffix)
                        ->setParameter('site'.$suffix, $site);
    }
public function andSiteIs(Site $site)
    {
        $suffix = $this->getSuffix();

        return $this->andWhere($this->getSectionAlias().'._site = :site'.$suffix)
                        ->setParameter('site'.$suffix, $site);
    }
public function andSiteIs ( Site $ site ) { $ suffix = $ this -> getSuffix ( ) ; return $ this -> andWhere ( $ this -> getSectionAlias ( ) . '._site = :site' . $ suffix ) -> setParameter ( 'site' . $ suffix , $ site ) ; }
Add query part to select page by site.

@param  Site                 $site               The owning site

@return PageQueryBuilder
Add query part to select page by site .