Model
AggregateCount
Magento\Catalog\Model\ResourceModel\Category\AggregateCount
What it does
This class handles the aggregation of category counts when a category is deleted in Magento 2.
It automatically updates the children_count field for all parent categories by decrementing the count by 1, ensuring the category hierarchy maintains accurate child count information after a deletion operation.
Public Methods
- processDelete()