NSPredicate for children

Data model

I want to get all the processing that are children of this List object.

I am not sure that this can be done.

I have a TableView showing all the patients on the list. Each patient can have many procedures.

I have a link to the current list and you want to use this to somehow find children for children.

thanks

+4
ios fetch core-data nspredicate
source share
1 answer

Use a select query for a Processing object with a predicate

[NSPredicate predicateWithFormat:@"ofPatient.ofList = %@", currentList] 

using the inverse relationship from "Treatment" β†’ "Patient" β†’ "List".

+3
source share

All Articles