I see that in the develop branch of the magento 2 repo the methods load
and save
from Magento\Framework\Model\AbstractModel
class are deprecated.
But there are a gazillion classes in the core that extend this class and use save
and load
.
When creating my own module for the CRUD part of my entities I follow the same guidelines as a core module does.
But since these methods are deprecated I would rather be prepared for the future.
What should I use instead of them? Or I should extend something else?
deprecated save and load methods
Marius
- 198.5k
- 55
- 424
- 833