Fixed issue #287 - MR_findByAttribute:withValue:andOrderBy:ascending:inContext does not pass context through

This commit is contained in:
Stephen Vanterpool
2012-10-21 07:54:20 -07:00
parent 87ad44a923
commit 4b97d0e97e

View File

@@ -1,4 +1,4 @@
//
//
// NSManagedObject+MagicalFinders.m
// Magical Record
//
@@ -198,7 +198,7 @@
NSPredicate *searchTerm = [NSPredicate predicateWithFormat:@"%K = %@", attribute, searchValue];
NSFetchRequest *request = [self MR_requestAllSortedBy:sortTerm ascending:ascending withPredicate:searchTerm inContext:context];
return [self MR_executeFetchRequest:request];
return [self MR_executeFetchRequest:request inContext:context];
}
+ (NSArray *) MR_findByAttribute:(NSString *)attribute withValue:(id)searchValue andOrderBy:(NSString *)sortTerm ascending:(BOOL)ascending