I'm trying to perform a filter on a group of objects based on a "State" criteria.
...
or {
office {
state {
'in'('abbrev', filters.stateFilter)
}
}
state {
'in'('abbrev', filters.stateFilter)
}
}
If the State filter in the OR is included in the cide it only get objects matching the State and not the Office.State as well. If I remove the State filter code it properly gets the Office.State of the Object.
The criteria needs to get the State for the Object (if it has one) as well as the Office.State of the Object (if it has one).
I'm assuming it has something to do with some implicit joins in the criteria builder?
Any leads would be appreciated!