flat3 / lodata

The OData v4.01 Producer for Laravel
https://lodata.io/
MIT License
80 stars 27 forks source link

HasManyThrough with Lambda #842

Open tychokamphuis-aqqo opened 2 months ago

tychokamphuis-aqqo commented 2 months ago

Fixed such that HasManyThrough works properly with a lambda function. The following query was not working for us: 127.0.0.1:8000/api/KnowledgebaseCategories?$expand=KnowledgebaseArticles($filter=knowledgebase_article_uri eq 'add-new-user')&$filter=KnowledgebaseArticles/any(s:s/knowledgebase_article_uri eq 'add-new-user')

KnowledgebaseArticles have a pivot table called 'Knowledgebase_articles_to_categories' for the many-to-many relation with KnowledgebaseCategories.

27pchrisl commented 1 month ago

Hi @tychokamphuis-accommodatiehuur, apologies I missed the notification on this one - running the tests on it now.

tychokamphuis-aqqo commented 1 month ago

Hi @tychokamphuis-accommodatiehuur, apologies I missed the notification on this one - running the tests on it now.

Hi @27pchrisl, any updates on this? I know that the code might not be according to the standards, however this is how it works for us. If you give me any hints on how to improve the code in such way that it more up to the standards that would be great!

Keep up the good work.