What to use instead of Model? Should I use Entity with annotations?
Permalink
I'm considering if I should use 5.7 for a new project in which a lot of app-like functionality should be present. In the old pre 5.7 times I extended Model class to get Objects that needs to be presisted and used the Loader for loading Misc classes that I needed.
Now it's clear that I can use the NS based autoloading plus I can register my classes in the IOC container much the same way as in other moden PHP frameworks and that is cool. But now Model class is depreciated.
What is then the new preferred way? I see that Doctrine is included, but is there a centralized way to get the EntityManager? Is this what I should be using for making future proof C5 apps?
Thanks in advance!
Now it's clear that I can use the NS based autoloading plus I can register my classes in the IOC container much the same way as in other moden PHP frameworks and that is cool. But now Model class is depreciated.
What is then the new preferred way? I see that Doctrine is included, but is there a centralized way to get the EntityManager? Is this what I should be using for making future proof C5 apps?
Thanks in advance!