Model

SetDataToLegacyStockStatus

Magento\InventoryCatalog\Model\ResourceModel\SetDataToLegacyStockStatus

What it does

This class synchronizes inventory data from Magento's new Multi-Source Inventory (MSI) system to the legacy cataloginventory_stock_status table.

Developers would use this when migrating from legacy inventory management to MSI, ensuring backward compatibility with older code that still reads from the legacy stock status tables.

It updates quantity and stock status for a product based on its SKU.

Public Methods

  • execute()