NSError *error = nil;
NSMutableArray *mutableFetchResults = [[managedObjectContext executeFetchRequest:request error:&error] mutableCopy];
if (mutableFetchResults == nil) { // Handle the error. }
// Set self's events array to the mutable array, then clean up. [self setEventsArray:mutableFetchResults]; [mutableFetchResults release];
these code gives a runtime error 'executeFetchRequest:error: A Fetch request must have an entity.' can any one help to solve this error