views:

85

answers:

2

Hello.

I do not understand what is this error. i tried some stuffs, i looked over, but nothing helped me.

here is the code of the error :

2010-08-13 14:37:37.587 iPilulier[6520:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'executeFetchRequest:error: A fetch request must have an entity.'
...
...
...
terminate called after throwing an instance of 'NSException'

GDB : program received signal: SIGABRT
A: 

Yes, i know, but i have this :

NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; 

NSEntityDescription *entity = [NSEntityDescription entityForName:@"Medic" inManagedObjectContext:self.managedObjectContext];
[fetchRequest setEntity:entity]
NDANGMBAI
A: 

Thank you justin.

What kind of information you need more ? because i really don't get it. My entuty : Medic is there, same speelling as in xcdatamodel

NDANGMBAI