From 08786593685754da9773eaad05ea0ce753c855f7 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 30 Sep 2013 09:25:48 +0200 Subject: [PATCH] update import using isDefault parameter on productSaleElements --- install/import.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/import.php b/install/import.php index d0910eede..c5f871869 100644 --- a/install/import.php +++ b/install/import.php @@ -182,6 +182,9 @@ function createProduct($faker, $categories, $template, $attribute, $feature) ->save(); } + $productSaleElements = $product->getProductSaleElementss()->getFirst(); + $productSaleElements->setIsDefault(1)->save(); + $brand = $data[11]; $featurAv = \Thelia\Model\FeatureAvI18nQuery::create() ->filterByLocale('en_US')