public function findErrorsBySite(Site $site) : array
    {
        $queryBuilder = $this->getQueryBuilder();
        $errors = $queryBuilder
            ->select('uid', 'item_type', 'item_uid', 'errors')
            ->from($this->table)
            ->andWhere(
                $queryBuilder->expr()->notLike('errors', $queryBuilder->createNamedParameter('')),
                $queryBuilder->expr()->eq('root', $site->getRootPageId())
            )
            ->execute()->fetchAll();

        return $errors;
    }
public function findErrorsBySite(Site $site) : array
    {
        $queryBuilder = $this->getQueryBuilder();
        $errors = $queryBuilder
            ->select('uid', 'item_type', 'item_uid', 'errors')
            ->from($this->table)
            ->andWhere(
                $queryBuilder->expr()->notLike('errors', $queryBuilder->createNamedParameter('')),
                $queryBuilder->expr()->eq('root', $site->getRootPageId())
            )
            ->execute()->fetchAll();

        return $errors;
    }
public function findErrorsBySite ( Site $ site ) : array { $ queryBuilder = $ this -> getQueryBuilder ( ) ; $ errors = $ queryBuilder -> select ( 'uid' , 'item_type' , 'item_uid' , 'errors' ) -> from ( $ this -> table ) -> andWhere ( $ queryBuilder -> expr ( ) -> notLike ( 'errors' , $ queryBuilder -> createNamedParameter ( '' ) ) , $ queryBuilder -> expr ( ) -> eq ( 'root' , $ site -> getRootPageId ( ) ) ) -> execute ( ) -> fetchAll ( ) ; return $ errors ; }
Finds indexing errors for the current site

@param Site $site
@return array Error items for the current site's Index Queue
Finds indexing errors for the current site