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 = [];