Log in
Model

UpdateSalesChannelWebsiteCode

Magento\InventorySales\Model\ResourceModel\UpdateSalesChannelWebsiteCode

What it does

This class updates website codes in the inventory stock sales channel table when a website's code is changed in Magento.

It's used internally by a plugin to maintain data integrity between the store_website table and inventory_stock_sales_channel table, ensuring that inventory stock assignments remain synchronized when website codes are modified.

Developers typically won't use this directly as it's triggered automatically through the WebsiteResourcePlugin.

Public Methods

  • execute()