I currently try to implement the RestKit CoreData extension to cache objects to my device. The problem is that I can apparently not exclude certain objects that are linked in code.
I'll give an example:
My object Message:
@interface Message : NSManagedObject
@property (nonatomic, copy) NSString *uuid;
@property (nonatomic, copy) NSString *text;
@property (nonatomic, copy) User *user;
@end
I want Message to be cached, but the User object shall just be in that object when the data comes from the server.
However I get this error:
[<NSManagedObject 0xeaa1290> valueForUndefinedKey:]: the entity Message is not key value coding-compliant for the key "user".'
Is there any way to go around this problem?
Usera managed object? Do you need theuserto be mapped out of the response from the server or you don't really need it. - Wain