Model

UpdateLegacyStockItems

Magento\InventoryCatalog\Model\ResourceModel\UpdateLegacyStockItems

What it does

This class updates legacy stock item records in the cataloginventory_stock_item table for specified products.

Developers use this to synchronize inventory data from the new Multi-Source Inventory (MSI) system back to the legacy CatalogInventory tables, ensuring backward compatibility with older Magento functionality and extensions that still rely on the legacy stock system.

Public Methods

  • execute()