"*** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: 'keypath name not found in
entity <NSSQLEntity Photo id=2>'"
I can't figure out if this has something to do with how I defined my
data model or what. I have a "to-many" (named photos) relationship
defined from Person to Photo entity and I have an inverse, "to-one"
relationship defined from Photo to Person (named person).
The code in both controllers is almost identical.
Any ideas?
Thanks -wg
My solution was simply to modify modify the method that returns a
FetchedResultsController as such. This generalizes the utility method
so it can be used for all your entities in this project.
- (NSFetchedResultsController *)fetchedResultsControllerForEntity:
(NSString*)entityName withPredicate:(NSPredicate*)predicate sortedBy:
(NSString *)sortProperty;
Bill