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
I have a model which has a parent to child relationship with itself and would like to search on the model by the presence of absence of a field in the parent. In my attempts to do so I have found that the query generated for these searches creates the joins with a unique alias but does not use it in the subsequent where clause. When doing Entitlement.search_for('parent == "ParentEntitlement'):
Hi,
I have a model which has a parent to child relationship with itself and would like to search on the model by the presence of absence of a field in the parent. In my attempts to do so I have found that the query generated for these searches creates the joins with a unique alias but does not use it in the subsequent where clause. When doing
Entitlement.search_for('parent == "ParentEntitlement')
:My model has the includes lines:
I have add an spec in a fork of the code to reproduce the issue:
aggronerd@43677a1
Sadly I am not sure how to fix it.
Please could you advise?
Thanks.
The text was updated successfully, but these errors were encountered: