mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
Merge 0883a101b5 into f2914c3200
This commit is contained in:
commit
79a857d987
1 changed files with 1 additions and 0 deletions
|
|
@ -170,6 +170,7 @@ class OrderExampleFactory extends AbstractExampleFactory implements ExampleFacto
|
|||
/** @var ProductInterface $product */
|
||||
$product = $this->faker->randomElement($products);
|
||||
$variant = $this->faker->randomElement($product->getVariants()->toArray());
|
||||
$product->setFallbackLocale($product->getTranslations()->first()->getLocale());
|
||||
|
||||
if (array_key_exists($variant->getCode(), $generatedItems)) {
|
||||
/** @var OrderItemInterface $item */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue