Log in
Model

CategoryProduct

Magento\Catalog\Model\ResourceModel\CategoryProduct

What it does

This resource model manages the database operations for the catalog_category_product table, which stores the many-to-many relationship between products and categories.

Developers use this class when they need to perform direct database operations on product-category associations, such as adding products to categories or retrieving which products belong to specific categories.