-
Hey guys, I'm pretty new to using this package and I got a question, it might problem with my code but I'm getting a Column not found even tho the column was provided through a join. Here's my code currently
It runs and retrieves everything perfectly when I request /boosters?filter[winrate]=80&sort=-orders, but when I call /boosters?filter[orders]=10&filter[winrate]=80&sort=-orders, it throws an exception saying the column wasn't found, orders follows the same logic as winrate so I don't really understand the reasoning for the exception to be thrown. Again sorry if it's not the correct to place to post this. Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you post the stack trace and the generated SQL query? (Call From the first view, I would assume it has to do with aliasing the column in the |
Beta Was this translation helpful? Give feedback.
-
@WildEgo Thank you thank you thank you! I had exactly the same situation with WinRate and this helped sooooo much! |
Beta Was this translation helpful? Give feedback.
Can you post the stack trace and the generated SQL query? (Call
->toSql()
on theQueryBuilder
instance)From the first view, I would assume it has to do with aliasing the column in the
->select()
call, as there is a difference between winrate and orders columns.