I want to get all rows that match some arbitrary criteria, then I want to also include any rows whose id is the parentId for any of those rows.
def criteria = MovieWorkbook.whereAny {
and {
ilike("name", name)
or {
eq("status", "open")
eq("status", "pending")
}
}
}
// this fails - returns nothing
criteria.or {
inList("id", criteria.list()*.parentId )
}
criteria.list()