I want just share a little something today.
Sometimes, you spend time to try to achieve something, and when you finally manage to do it, you see, the best practice, the helper, the proxy class, you see the real and beautiful solution !
Today is one of this day for me, I need to order a relationship between to entities, managed by doctrine, in my Symfony project.
But instead of searching in the doc (RTFM… always) I have tried and lost my time before I search and found.
Ddoctrine is clearly an amazing solution, and *of course* my use case is already manage by an annotation :
Short (copied from doc):
Doctrine official :
Order relationship between entities
Yes ! Just like that