protected function getQueryBuilder(DataSetRequestInterface $request) : QueryBuilder { $queryBuilder = parent::getQueryBuilder($request); $expression = $queryBuilder->expr()->eq('order_product.order', ':order'); $queryBuilder->andWhere($expression); $queryBuilder->setParameter('order', $this->provider->getCurrentOrderIdentifier()); $queryBuilder->setParameter('date', (new \DateTime())->setTime(0, 0, 1)); return $queryBuilder; }
public function getCurrentOrder() : OrderInterface { return $this->orderProvider->getCurrentOrder(); }