0

Save product by its id in magento 2. What is the best practice in use ?

| improve this question | | | | |
1

Repository is the best way to save the product. Because of \Magento\Catalog\Api\ProductRepositoryInterface::save() has future, in future will be more use where Magento\Catalog\Model\Product::save() will fully deprecated in near future.

| improve this answer | | | | |

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