I am trying to get an entity from master data depending on an attribute called "name". Here is my code:
NSManagedObjectContext *context = [self managedObjectContext]; NSEntityDescription *vegetable = [NSEntityDescription insertNewObjectForEntityForName:@"Vegetable" inManagedObjectContext:context];
The last line throws the following exception:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Vegetable subentitiesByName]: unrecognized selector sent to instance 0x6bbcdd0'
any ideas?
source share