Replies: 1 comment
-
have you found a way to sort using a relation field? |
Beta Was this translation helpful? Give feedback.
0 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.
-
I have a relation in my model, defined as
So I get the user that is the teacher for this Camp model instance (the teachers table itself is for managing rights).
What I am trying to achieve is to be be able to sort the user's
name
field. Tried this, no luck, getting aSQLSTATE[42S22]: Column not found: 1054 Unknown column 'teacher.user.name' in 'order clause'
instead.Beta Was this translation helpful? Give feedback.
All reactions