Skip to content

Commit 27141da

Browse files
committed
fix integration tests
1 parent 55866fe commit 27141da

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Category.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class Category extends AbstractResource
3636
protected $_tree;
3737

3838
/**
39-
* Catalog products table name
40-
*
4139
* @var string
4240
*/
4341
protected $_categoryProductTable;
@@ -48,15 +46,11 @@ class Category extends AbstractResource
4846
private $entitiesWhereAttributesIs;
4947

5048
/**
51-
* Id of 'is_active' category attribute
52-
*
5349
* @var int
5450
*/
5551
protected $_isActiveAttributeId = null;
5652

5753
/**
58-
* Id of store
59-
*
6054
* @var int
6155
*/
6256
protected $_storeId = null;
@@ -454,7 +448,7 @@ protected function _saveCategoryProducts($category)
454448
'position' => (int)$position,
455449
];
456450
}
457-
$connection->insertMultiple($this->getCategoryProductTable(), $data);
451+
$connection->insertOnDuplicate($this->getCategoryProductTable(), $data, ['position']);
458452
}
459453

460454
/**

0 commit comments

Comments
 (0)