Bridge/Doctrine/ORM/Repository/TaxRuleRepository.php
private function getBaseQueryBuilder()
    {
        $qb = $this->getQueryBuilder('r', 'r.id');

        return $qb
            ->andWhere(
                $qb->expr()->orX(
                    $qb->expr()->isMemberOf(':country', 'r.countries'),
                    'r.countries IS EMPTY'
                )
            )
            ->addOrderBy('r.priority', 'DESC');
    }
private function getBaseQueryBuilder()
    {
        $qb = $this->getQueryBuilder('r', 'r.id');

        return $qb
            ->andWhere(
                $qb->expr()->orX(
                    $qb->expr()->isMemberOf(':country', 'r.countries'),
                    'r.countries IS EMPTY'
                )
            )
            ->addOrderBy('r.priority', 'DESC');
    }
private function getBaseQueryBuilder ( ) { $ qb = $ this -> getQueryBuilder ( 'r' , 'r.id' ) ; return $ qb -> andWhere ( $ qb -> expr ( ) -> orX ( $ qb -> expr ( ) -> isMemberOf ( ':country' , 'r.countries' ) , 'r.countries IS EMPTY' ) ) -> addOrderBy ( 'r.priority' , 'DESC' ) ; }
Returns the base query builder.

@return \Doctrine\ORM\QueryBuilder
Returns the base query builder .