Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Lenses query
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@crynobone Do you think this is a bug? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi
I have this Lense query
I am having an issue with sorting a computed column in my code. Specifically, I have the following line of code:
Text::make('Working Hours', 'total_attended')->sortable()->textAlign('center')
However, when I attempt to sort, I receive an error message that states:
"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.total_attended' in 'order clause ......... order by users.total_attended asc limit 26 offset 0)"
Actually there is no column named total_attended it is computed column.
I have tested running the SQL statement "ORDER BY total_attended ASC" and it works perfectly fine.
the ROW SQL:
How can I properly sort this computed column?
Beta Was this translation helpful? Give feedback.
All reactions