We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query in Craft 4 not working using .orderBy('distance') Same query works without .orderBy and returns results
Execption thrown: Column not found: 1054 Unknown column '0' in 'order clause'
{% set entries = craft.entries.myMapField({ location: myOtherMapField, }).orderBy('distance').all() %}
will throw exception in craft 4, query did work in Craft 3
The text was updated successfully, but these errors were encountered:
@isteinacker What is the value of myOtherMapField?
myOtherMapField
Sorry, something went wrong.
No branches or pull requests
Description
Query in Craft 4 not working using .orderBy('distance')
Same query works without .orderBy and returns results
Execption thrown:
Column not found: 1054 Unknown column '0' in 'order clause'
Steps to reproduce
{% set entries = craft.entries.myMapField({
location: myOtherMapField,
}).orderBy('distance').all() %}
will throw exception in craft 4, query did work in Craft 3
Additional info
The text was updated successfully, but these errors were encountered: