Log in
Model

SaveMultiple

Magento\Inventory\Model\ResourceModel\SourceItem\SaveMultiple

What it does

This class handles bulk saving of inventory source items to the database for performance optimization.

Developers use this when they need to save multiple source items (product quantities at different warehouse locations) at once, rather than saving them individually.

It automatically separates new items from existing ones and uses appropriate database operations (insert vs update) for each.

Public Methods

  • execute()