Log in
Model

Purchased

Magento\Downloadable\Model\Link\Purchased

What it does

This model represents a purchased downloadable link record in Magento 2.

Developers use this class to manage and track downloadable products that customers have purchased, storing information like order details, customer ID, product name, and SKU.

It ensures data integrity by validating that an order ID exists before saving the record to the database.

Public Methods

  • beforeSave()