Closed kprovorov closed 7 years ago
I find the problem. I remove orderBy from config and it works. Looks like some conflict about id column when i use join.
@kprovorov
Firstly, I'm glad that your issue fixed :)
And yes, error may occurs when you use "joins" in this case. I think, it's normal. You can use "order_by" parameter also to fix it.
https://github.com/selahattinunlu/laravel-api-query-builder/wiki/Other-Examples#order_by I guess, you can use like this: ?order_by=time_entries.id,asc
First thank you for a great lib! I hope i will use it in my app.
I have a problem using join in filter.
I have 3 models in next hierarchy:
in my TimeEntryController i have next code:
in my TimeEntryQueryBuilder a have next:
so when a make request for
/timeentries/project=2
i want to get all TimeEntries, that assigned to tasks, that assigned to project with id=2, but i have the following error:Maybe you can help me, pls? )