We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f9443d commit 3049f90Copy full SHA for 3049f90
guides/plugins/plugins/checkout/document/add-custom-document-type.md
@@ -231,7 +231,11 @@ class ExampleDocumentRenderer extends AbstractDocumentRenderer
231
232
$template = self::DEFAULT_TEMPLATE;
233
234
- $orders = $this->orderRepository->search(new Criteria($ids), $context)->getEntities();
+ $criteria = new Criteria($ids);
235
+ $criteria->addAssociation('language');
236
+ $criteria->addAssociation('language.locale');
237
+
238
+ $orders = $this->orderRepository->search($criteria, $context)->getEntities();
239
foreach ($orders as $order) {
240
$orderId = $order->getId();
241
0 commit comments