Log in
Model

Item

Magento\Wishlist\Model\ResourceModel\Item

What it does

This resource model handles database operations for wishlist items in Magento 2.

Developers use it to save wishlist items to the database, load items by specific criteria (wishlist ID, product ID, and store), and manage the persistence of item options.

It ensures that when a wishlist item is saved, its associated product options are also persisted correctly.

Public Methods

  • loadByProductWishlist()
  • save()