Bridge/Doctrine/ORM/Repository/TaxRuleRepository.php
private function getByCountryAndBusinessQuery()
    {
        if (null === $this->byCountryAndBusinessQuery) {
            $qb = $this->getBaseQueryBuilder();

            $this->byCountryAndBusinessQuery = $qb
                ->andWhere($qb->expr()->eq('r.business', ':business'))
                ->getQuery()
                ->setParameter('business', true)
                ->setMaxResults(1);
        }

        return $this->byCountryAndBusinessQuery;
    }
private function getByCountryAndBusinessQuery()
    {
        if (null === $this->byCountryAndBusinessQuery) {
            $qb = $this->getBaseQueryBuilder();

            $this->byCountryAndBusinessQuery = $qb
                ->andWhere($qb->expr()->eq('r.business', ':business'))
                ->getQuery()
                ->setParameter('business', true)
                ->setMaxResults(1);
        }

        return $this->byCountryAndBusinessQuery;
    }
private function getByCountryAndBusinessQuery ( ) { if ( null === $ this -> byCountryAndBusinessQuery ) { $ qb = $ this -> getBaseQueryBuilder ( ) ; $ this -> byCountryAndBusinessQuery = $ qb -> andWhere ( $ qb -> expr ( ) -> eq ( 'r.business' , ':business' ) ) -> getQuery ( ) -> setParameter ( 'business' , true ) -> setMaxResults ( 1 ) ; } return $ this -> byCountryAndBusinessQuery ; }
Returns the "find one by country and business" query.

@return \Doctrine\ORM\Query
Returns the find one by country and business query .