You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
496B

  1. <?php
  2. namespace domain\Order\ProductOrder;
  3. use domain\Order\Order\Order;
  4. use domain\_\AbstractRepositoryQuery;
  5. class ProductOrderRepositoryQuery extends AbstractRepositoryQuery
  6. {
  7. protected ProductOrderDefinition $definition;
  8. public function loadDependencies(): void
  9. {
  10. $this->loadDefinition(ProductOrderDefinition::class);
  11. }
  12. public function filterByOrder(Order $order): self
  13. {
  14. $this->andWhere(['id_order' => $order->id]);
  15. return $this;
  16. }
  17. }