NSFetchedResultsController when navigating from one UITableViewController to another ...
- by wgpubs
In my core data model I have a Person entity that has a "to many" relationship a Course entity (I also have an inverse "to one" relationship from Course to Person).
Now I have a subclassed UITableViewController that uses a NSFetchedResultsController to display Person objects which works fine. I have this set up so that when you click on a Person it publishes another subclassed UITableViewController that uses a NSFetchedController as well to display the Courses associated to the person.
PROBLEM: I get this exception whenever I click on the Person and attempt to display the Course UITableViewController ...
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'keypath name not found in entity '"
Any ideas on how to resolve or troubleshoot?
The code between the two ViewControllers is almost identical except for the NSFetchedResultsController being configured for "Person" entities in one and "Course" entities in another