-
-
Notifications
You must be signed in to change notification settings - Fork 970
Sorting fails when the property is part of criteria #9860
Copy link
Copy link
Closed
Labels
Milestone
Description
Consider traditional Parent and Child domain classes, where parent is property of child. Following is sample code with a few queries:
query1=Child.where{
(name!=null)
}
query2=Child.where{
(parent.name!=null)
}
def results
results=query1.list([max:5,sort:'parent.name']) // works
results=query2.list([max:5]) //works
results=query2.list([max:5,sort:'parent.name']) // fails
The last query with sorting fails on 'could not resolve property: parent.name of: Child' without obvious reason.
Reactions are currently unavailable