public function flushErrorsBySite(Site $site) : int
    {
        $queryBuilder = $this->getQueryBuilder();
        $affectedRows = $this->getPreparedFlushErrorQuery($queryBuilder)
            ->andWhere(
                $queryBuilder->expr()->eq('root', (int)$site->getRootPageId())
            )
            ->execute();
        return $affectedRows;
    }
public function flushErrorsBySite(Site $site) : int
    {
        $queryBuilder = $this->getQueryBuilder();
        $affectedRows = $this->getPreparedFlushErrorQuery($queryBuilder)
            ->andWhere(
                $queryBuilder->expr()->eq('root', (int)$site->getRootPageId())
            )
            ->execute();
        return $affectedRows;
    }
public function flushErrorsBySite ( Site $ site ) : int { $ queryBuilder = $ this -> getQueryBuilder ( ) ; $ affectedRows = $ this -> getPreparedFlushErrorQuery ( $ queryBuilder ) -> andWhere ( $ queryBuilder -> expr ( ) -> eq ( 'root' , ( int ) $ site -> getRootPageId ( ) ) ) -> execute ( ) ; return $ affectedRows ; }
Flushes the errors for a single site.

@param Site $site
@return int
Flushes the errors for a single site .