Skip to content

Sorting fails when the property is part of criteria #9860

@rvachtl

Description

@rvachtl

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions