Model
CategoryLinkRepository
Magento\Catalog\Model\CategoryLinkRepository
What it does
This class manages the relationship between products and categories in Magento 2.
Developers use it to programmatically assign products to categories with specific positions, remove products from categories, or perform bulk product-category association operations.
It's the primary repository for handling category-product links through the API layer.
Public Methods
- save()
- delete()
- deleteByIds()
- deleteBySkus()