Log in
Model

GetCategoryIdsByProductIds

Magento\InventoryIndexer\Model\ResourceModel\GetCategoryIdsByProductIds

What it does

This class retrieves all category IDs associated with given product IDs by querying the catalog_category_product table.

Developers would use this when they need to find which categories contain specific products, such as during inventory indexing operations to determine which category pages need to be updated when product stock changes.

Public Methods

  • execute()