From 4b97d0e97ecd3d492fb0405115b2f6145bb3b807 Mon Sep 17 00:00:00 2001 From: Stephen Vanterpool Date: Sun, 21 Oct 2012 07:54:20 -0700 Subject: [PATCH] Fixed issue #287 - MR_findByAttribute:withValue:andOrderBy:ascending:inContext does not pass context through --- .../NSManagedObject/NSManagedObject+MagicalFinders.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m b/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m index a92eef2..67aac0c 100644 --- a/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m +++ b/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m @@ -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