code: private function getFindNewBySupplierQuery()
      {
          if (null !== $this->findNewBySupplierQuery) {
              return $this->findNewBySupplierQuery;
          }
  
          $qb = $this->createQueryBuilder();
          $as = $this->getAlias();
  
          return $this->findNewBySupplierQuery = $qb
              ->andWhere($qb->expr()->eq($as . '.supplier', ':supplier'))
              ->andWhere($qb->expr()->eq($as . '.state', ':state'))
              ->getQuery()
              ->setParameter('state', Model\SupplierOrderStates::STATE_NEW);
      }
docs: Returns the "find new by supplier" query.
  
  @return \Doctrine\ORM\Query