From 42fd74f178c3334acffabab0b8dbc1d98d773a88 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Wed, 4 Sep 2024 09:53:55 +0200 Subject: [PATCH] NTR: PISHPS-348: Fix memory limit issues --- src/ScheduledTask/OrderStatus/ExpireOrderTaskHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScheduledTask/OrderStatus/ExpireOrderTaskHandler.php b/src/ScheduledTask/OrderStatus/ExpireOrderTaskHandler.php index cd2f5b387..2d1aded3d 100644 --- a/src/ScheduledTask/OrderStatus/ExpireOrderTaskHandler.php +++ b/src/ScheduledTask/OrderStatus/ExpireOrderTaskHandler.php @@ -40,7 +40,7 @@ public function run(): void $criteria = new Criteria(); $criteria->addAssociation('transactions.stateMachineState'); - $criteria->getAssociation('transactions.stateMachineState')->addFilter(new EqualsFilter('technicalName', OrderStates::STATE_IN_PROGRESS)); + $criteria->addFilter(new EqualsFilter('transactions.stateMachineState.technicalName', OrderStates::STATE_IN_PROGRESS)); $criteria->addSorting(new FieldSorting('orderDateTime', FieldSorting::DESCENDING)); $criteria->setLimit(10);