Model
SetDataToLegacyStockItem
Magento\InventoryCatalog\Model\ResourceModel\SetDataToLegacyStockItem
What it does
This class updates the legacy cataloginventory_stock_item table with quantity and stock status data for a product identified by SKU.
Developers use this during MSI (Multi-Source Inventory) operations to maintain backward compatibility with the legacy catalog inventory system, ensuring that stock data remains synchronized between the new MSI tables and the old stock item table.
Public Methods
- execute()