Closed tychokamphuis-aqqo closed 2 months ago
Edit: On second hand; This is not the currect solution. However, filtering on expanded HasManyThrough is still not working.
HasManyThrough relations were not filterable. To recreate this issue you can use the following database from the Laravel documentation:
projects id - integer name - string environments id - integer project_id - integer name - string deployments id - integer environment_id - integer commit_hash - string
When recreated the above, the following query returns all projects instead of a any with a commit hash.
http://127.0.0.1:8000/odata/Projects?$expand=Deployments($filter=commit_hash eq 'XXX')&$filter=Deployments/any(s:s/commit_hash eq 'XXX')
Edit: On second hand; This is not the currect solution. However, filtering on expanded HasManyThrough is still not working.
HasManyThrough relations were not filterable. To recreate this issue you can use the following database from the Laravel documentation:
When recreated the above, the following query returns all projects instead of a any with a commit hash.
http://127.0.0.1:8000/odata/Projects?$expand=Deployments($filter=commit_hash eq 'XXX')&$filter=Deployments/any(s:s/commit_hash eq 'XXX')