In Magento 2, which one is the difference between Magento\Catalog\Model\Product and Magento\Catalog\Model\ProductRepository?

Using both of them, seems they have the same methods, so I don't know when I should use one or the other.


1 Answer 1


I am not 100% deep knowledge of this.

But i am pretty sure that you should use


As it can use for both api and model layer

See the magento document:



How to implement service contract for a custom module in Magento 2?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.