Skip to main content

Posts

Showing posts with the label nsfetchrequest

NSFetchRequest for all children of a parent

How do I fetch all child entities of a parent? I have a table populated by a parent entity in Core Data. When the user touches a cell I intend to show another table with all children of that parent. How does the NSFetchRequest look like for this please? Edit: model is like this: student>>dates [one to many, one student have many days] So I want all dates for any given student (selected by touching in student table cell for that student), then populate dates table with dates for that student. Thanks!