2
我有一个具有.localConcerts
提取属性的艺术家对象(基本上是完整集合的一个子集,concerts
集合),我可以在我的NSFetchedResultsController谓词中使用该属性吗?NSFetchedResultsController谓词中的提取属性
这里就是我想:
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Artist" inManagedObjectContext:context];
[request setEntity:entity];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"[email protected] > 0"];
[request setPredicate:predicate];
fetchedResultsController = [[NSFetchedResultsController alloc]
initWithFetchRequest:request
managedObjectContext:context
sectionNameKeyPath:nil
cacheName:nil];
但我发现了:
'keypath localConcerts not found in entity <NSSQLEntity Artist id=1>'
我缺少的东西,或只是不能使用内部谓词获取属性?