Log in
Model

ShipmentRepository

Magento\Sales\Model\Order\ShipmentRepository

What it does

The ShipmentRepository class provides a centralized way to manage order shipments in Magento 2.

Developers use this class to load, save, delete, or search for shipment records through its CRUD operations (get, save, delete) and list functionality (getList).

It serves as the main interface for shipment data persistence, handling database operations and maintaining an in-memory registry of loaded shipments for performance optimization.

Public Methods

  • get()
  • getList()
  • delete()
  • deleteById()
  • save()
  • create()