Log in
Model

AbstractResource

Magento\Catalog\Model\ResourceModel\AbstractResource

What it does

This abstract class serves as the base resource model for all Magento 2 catalog entities (products, categories, etc.) that use EAV (Entity-Attribute-Value) architecture.

Developers extend this class when creating custom catalog entity resource models to handle database operations like loading, saving, and retrieving attribute values with proper store scope handling.

It provides essential functionality for managing multi-store attribute values and ensuring data integrity across different store views.

Public Methods

  • getDefaultStoreId()
  • getAttributeRawValue()