Model
Review
Magento\Review\Model\ResourceModel\Review
What it does
This class manages database operations for product reviews in Magento 2, including creating, updating, deleting reviews and their associated data (details, stores, ratings).
Developers use it when working with review aggregations, calculating review summaries and ratings for products, or performing bulk review operations like deleting all reviews for a specific product.
Public Methods
- afterDeleteCommit()
- getTotalReviews()
- aggregate()
- reAggregateReview()
- getEntityIdByCode()
- deleteReviewsByProductId()