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
This works fine with standard scaffold templates "paginate" (index) and "get(id)" (view)
However I get SELECT Users.id AS Users__id, Users.name AS Users__name FROM users Users WHERE AccessTokens.foreign_type = :c0
when using crud.relatedModel listener as foreign_type is in AccessTokens
It also works on in crud generally as in view I'm adding containing models like so
In which the URL http://{{domain}}/api/enquiries/5/clients is handled by crud's IndexAction. The conditions of the associations are not taken into account during find.
As RelatedModel listener effectively uses "select" strategy it breaks join conditions.
For example in AccessTokensTable
This works fine with standard scaffold templates "paginate" (index) and "get(id)" (view)
However I get
SELECT Users.id AS
Users__id, Users.name AS
Users__nameFROM users Users WHERE AccessTokens.foreign_type = :c0
when using crud.relatedModel listener as foreign_type is in AccessTokens
It also works on in crud generally as in view I'm adding containing models like so
The text was updated successfully, but these errors were encountered: