Log in
Model

SaveMultiple

Magento\Inventory\Model\ResourceModel\StockSourceLink\SaveMultiple

What it does

This class handles bulk saving of stock-source links in Magento's Multi-Source Inventory (MSI) system.

Developers use this when they need to efficiently associate multiple inventory sources with stocks in a single database operation, rather than saving links one at a time.

It automatically handles conflicts by updating the priority if a link already exists.

Public Methods

  • execute()