If you add a column with a relation (for example page.number in a books resource), the query breaks because there is no join.
I fixed this by using the model instead of the query builder. EG:
$query = app($page::getResource()::getModel());
The model does understand requesting relation columns.
I can make a PR if wanted.
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
If you add a column with a relation (for example
page.number
in abooks
resource), the query breaks because there is no join. I fixed this by using the model instead of the query builder. EG:The model does understand requesting relation columns. I can make a PR if wanted.
Upvote & Fund