remove unused comment code
This commit is contained in:
@@ -111,20 +111,7 @@ function createProduct($faker, $categories, $template, $attribute, $feature)
|
|||||||
$product->addCategory($categories[$productCategory]);
|
$product->addCategory($categories[$productCategory]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
$productCategories = $product->getProductCategories();
|
|
||||||
$collection = new \Propel\Runtime\Collection\Collection();
|
|
||||||
$i=0;
|
|
||||||
foreach($productCategories as $productCategory) {
|
|
||||||
if($i == 0) {
|
|
||||||
$collection->append($productCategory->setDefaultCategory(true));
|
|
||||||
} else {
|
|
||||||
$collection->append($productCategory);
|
|
||||||
}
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
$product->setProductCategories($collection);*/
|
|
||||||
|
|
||||||
$product
|
$product
|
||||||
->setLocale('en_US')
|
->setLocale('en_US')
|
||||||
|
|||||||
Reference in New Issue
Block a user