How to replace the deprecated PARTIAL syntax (DQL)? #11034
Replies: 1 comment 2 replies
-
Please keep discussion about this topic on #8471 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After recent composer updates (in a Symfony project) I am hit by:
Unfortunately the linked issue does not explain how to replace PARTIAL queries.
Why most of use PARTIAL was explained years ago by Marco:
https://ocramius.github.io/blog/doctrine-orm-optimization-hydration/
My project uses this technique for 80% of all object trees that needs to be loaded. Here is a very simple example:
https://github.com/kimai/kimai/blob/main/src/Repository/Loader/InvoiceLoader.php#L43
In my case there are pages where PARTIAL fetches replace 10+ joins. Without PARTIAL I have literally no idea how to run the application.
My question is: is there a forward compatible replacement, that still uses the ORM? How can I replace these calls?
EDIT: Seems this is work in progress. There are many open & closed issues about this topic.
For everyone else wondering where to get more infos, these look like a good follow:
Beta Was this translation helpful? Give feedback.
All reactions