File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
app/code/Magento/Catalog/Model/ResourceModel Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ class Category extends AbstractResource
36
36
protected $ _tree ;
37
37
38
38
/**
39
- * Catalog products table name
40
- *
41
39
* @var string
42
40
*/
43
41
protected $ _categoryProductTable ;
@@ -48,15 +46,11 @@ class Category extends AbstractResource
48
46
private $ entitiesWhereAttributesIs ;
49
47
50
48
/**
51
- * Id of 'is_active' category attribute
52
- *
53
49
* @var int
54
50
*/
55
51
protected $ _isActiveAttributeId = null ;
56
52
57
53
/**
58
- * Id of store
59
- *
60
54
* @var int
61
55
*/
62
56
protected $ _storeId = null ;
@@ -454,7 +448,7 @@ protected function _saveCategoryProducts($category)
454
448
'position ' => (int )$ position ,
455
449
];
456
450
}
457
- $ connection ->insertMultiple ($ this ->getCategoryProductTable (), $ data );
451
+ $ connection ->insertOnDuplicate ($ this ->getCategoryProductTable (), $ data, [ ' position ' ] );
458
452
}
459
453
460
454
/**
You can’t perform that action at this time.
0 commit comments