Bundle
Magento\Bundle\Model\ResourceModel\Bundle
What it does
This resource model manages database operations for bundle products in Magento 2.
Developers use it to retrieve bundle product selections, manage product relations between parent bundle products and their child products, and clean up quote items when bundle configurations change.
It's essential when working with bundle product data persistence and ensuring proper relationships between bundle parents and their optional/required child products.
Public Methods
- getSelectionsData()
- dropAllQuoteChildItems()
- dropAllUnneededSelections()
- saveProductRelations()
- addProductRelation()
- addProductRelations()
- removeProductRelations()