mirror of
https://github.com/zhigang1992/MagicalRecord.git
synced 2026-01-12 17:32:18 +08:00
Fixed issue #287 - MR_findByAttribute:withValue:andOrderBy:ascending:inContext does not pass context through
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user