Why are criteria orderings receiving automatically a missing alias when adding to the QueryBuilder? #11158
ddegasperi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using Criteria together with the QueryBuilder I encountered the following limitation:
I tried to use a DQL function in the sort field of Criteria. When adding Criteria to QueryBuilder, an alias is automatically added to the sort fields where no alias exists. This leads to the DQL function being aliased and the query being translated incorrectly. If I use the DQL function via orderby of the QueryBuilder, the alias is not added automatically and it works.
Why is the alias automatically added to orderBy when using Criteria? Is there a special reason for this?
Beta Was this translation helpful? Give feedback.
All reactions