Model
UpSell
Magento\Catalog\Model\Product\CopyConstructor\UpSell
What it does
This class is responsible for copying up-sell product links when duplicating a product in Magento 2.
When a product is duplicated, this copy constructor ensures that all up-sell relationships from the original product are transferred to the new duplicate product, maintaining the same linked products and their attributes.
Public Methods
- build()