From faaf6c51fe0109a249a4a9bda9651f619b25535f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agusti=CC=81n=20Nieto=20Garci=CC=81a?= Date: Wed, 15 Dec 2021 23:49:17 -0500 Subject: [PATCH] use public method --- .../Magento/CatalogImportExport/Model/Import/Product.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/CatalogImportExport/Model/Import/Product.php b/app/code/Magento/CatalogImportExport/Model/Import/Product.php index 25dc5360c8df2..e158dd670bdbb 100644 --- a/app/code/Magento/CatalogImportExport/Model/Import/Product.php +++ b/app/code/Magento/CatalogImportExport/Model/Import/Product.php @@ -1048,7 +1048,7 @@ protected function _deleteProducts() { $productEntityTable = $this->_resourceFactory->create()->getEntityTable(); - while ($bunch = $this->_dataSourceModel->getNextBunch()) { + while ($bunch = $this->getNextBunch()) { $idsToDelete = []; foreach ($bunch as $rowNum => $rowData) { @@ -1570,7 +1570,7 @@ protected function _saveProducts() $productsQty = null; $entityLinkField = $this->getProductEntityLinkField(); - while ($bunch = $this->_dataSourceModel->getNextBunch()) { + while ($bunch = $this->getNextBunch()) { $entityRowsIn = []; $entityRowsUp = []; $attributes = []; @@ -2320,7 +2320,7 @@ protected function _saveProductWebsites(array $websiteData) */ protected function _saveStockItem() { - while ($bunch = $this->_dataSourceModel->getNextBunch()) { + while ($bunch = $this->getNextBunch()) { $stockData = []; $productIdsToReindex = []; $stockChangedProductIds = [];