Log in
Model

SaveStockItemConfiguration

Magento\InventoryConfiguration\Model\SaveStockItemConfiguration

What it does

This class saves inventory configuration settings for a product's stock item in Magento 2.

Developers use this when programmatically updating stock configuration options like minimum/maximum sale quantities, backorder settings, quantity increments, and stock management preferences.

It bridges the new MSI (Multi-Source Inventory) system with the legacy cataloginventory_stock_item table by writing configuration changes directly to the database.

Public Methods

  • execute()