diff --git a/install/faker.php b/install/faker.php index 0b0c471bb..66303f05a 100755 --- a/install/faker.php +++ b/install/faker.php @@ -37,14 +37,6 @@ try { ->find(); $categoryAssociatedContent->delete(); - $attributeCategory = Thelia\Model\AttributeCategoryQuery::create() - ->find(); - $attributeCategory->delete(); - - $featureCategory = Thelia\Model\FeatureCategoryQuery::create() - ->find(); - $featureCategory->delete(); - $featureProduct = Thelia\Model\FeatureProductQuery::create() ->find(); $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) { //add random accessories - or not $alreadyPicked = array();