fix faker
This commit is contained in:
@@ -37,14 +37,6 @@ try {
|
|||||||
->find();
|
->find();
|
||||||
$categoryAssociatedContent->delete();
|
$categoryAssociatedContent->delete();
|
||||||
|
|
||||||
$attributeCategory = Thelia\Model\AttributeCategoryQuery::create()
|
|
||||||
->find();
|
|
||||||
$attributeCategory->delete();
|
|
||||||
|
|
||||||
$featureCategory = Thelia\Model\FeatureCategoryQuery::create()
|
|
||||||
->find();
|
|
||||||
$featureCategory->delete();
|
|
||||||
|
|
||||||
$featureProduct = Thelia\Model\FeatureProductQuery::create()
|
$featureProduct = Thelia\Model\FeatureProductQuery::create()
|
||||||
->find();
|
->find();
|
||||||
$featureProduct->delete();
|
$featureProduct->delete();
|
||||||
@@ -325,22 +317,6 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//attribute_category and feature_category (all categories got all features/attributes)
|
|
||||||
foreach($categoryIdList as $categoryId) {
|
|
||||||
foreach($attributeList as $attributeId => $attributeAvId) {
|
|
||||||
$attributeCategory = new Thelia\Model\AttributeCategory();
|
|
||||||
$attributeCategory->setCategoryId($categoryId)
|
|
||||||
->setAttributeId($attributeId)
|
|
||||||
->save();
|
|
||||||
}
|
|
||||||
foreach($featureList as $featureId => $featureAvId) {
|
|
||||||
$featureCategory = new Thelia\Model\FeatureCategory();
|
|
||||||
$featureCategory->setCategoryId($categoryId)
|
|
||||||
->setFeatureId($featureId)
|
|
||||||
->save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach($productIdList as $productId) {
|
foreach($productIdList as $productId) {
|
||||||
//add random accessories - or not
|
//add random accessories - or not
|
||||||
$alreadyPicked = array();
|
$alreadyPicked = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user