Log in
Model

Rating

Magento\Review\Model\ResourceModel\Rating

What it does

This resource model manages database operations for product ratings in Magento 2.

Developers use it to retrieve rating summaries, manage rating stores and titles, aggregate review data, and perform CRUD operations on ratings.

It handles the persistence layer for rating entities including their associated votes, stores, and review summaries.

Public Methods

  • getStores()
  • getEntitySummary()
  • getReviewSummary()
  • getEntityIdByCode()
  • deleteAggregatedRatingsByProductId()