You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is what the Task model looks like with configured relationships.
Here, I am referring to the relationship.
As a result, I have an empty field. When I try to sort the column, I get an error. SQLSTATE[42S22]: Column not found: 1054 Unknown column 'products.order_id' in 'where clause'
All other relationship methods work fine. The issue only arises with the relationship through another relationship.
If I access the relationship using Laravel, everything works perfectly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi.
I have tables with such relationships.
Here is what the Task model looks like with configured relationships.
Here, I am referring to the relationship.
As a result, I have an empty field. When I try to sort the column, I get an error.
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'products.order_id' in 'where clause'
All other relationship methods work fine. The issue only arises with the relationship through another relationship.
If I access the relationship using Laravel, everything works perfectly.
Beta Was this translation helpful? Give feedback.
All reactions