public function countTotalOrders(array $baseIds = [], $filters = [])
    {
        $builder = $this->createQueryBuilder('o');
        $builder->select($builder->expr()->countDistinct('o.id'));
        $this->performQuery($builder, $baseIds, $filters);

        return $builder->getQuery()->getSingleScalarResult();
    }
public function countTotalOrders(array $baseIds = [], $filters = [])
    {
        $builder = $this->createQueryBuilder('o');
        $builder->select($builder->expr()->countDistinct('o.id'));
        $this->performQuery($builder, $baseIds, $filters);

        return $builder->getQuery()->getSingleScalarResult();
    }
public function countTotalOrders ( array $ baseIds = [ ] , $ filters = [ ] ) { $ builder = $ this -> createQueryBuilder ( 'o' ) ; $ builder -> select ( $ builder -> expr ( ) -> countDistinct ( 'o.id' ) ) ; $ this -> performQuery ( $ builder , $ baseIds , $ filters ) ; return $ builder -> getQuery ( ) -> getSingleScalarResult ( ) ; }
Returns the total number of orders from an array of base_id and filters

@param array $baseIds
@param array $filters
@return int
Returns the total number of orders from an array of base_id and filters