Skip to content

Commit

Permalink
Include all sub entities by default when deleting using a predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
casademora committed Dec 11, 2011
1 parent 52aaff9 commit be9d5c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Source/Categories/NSManagedObject+MagicalRecord.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -680,7 +680,6 @@ + (BOOL) MR_deleteAllMatchingPredicate:(NSPredicate *)predicate inContext:(NSMan
{ {
NSFetchRequest *request = [self MR_requestAllWithPredicate:predicate inContext:context]; NSFetchRequest *request = [self MR_requestAllWithPredicate:predicate inContext:context];
[request setReturnsObjectsAsFaults:YES]; [request setReturnsObjectsAsFaults:YES];
[request setIncludesSubentities:NO];
[request setIncludesPropertyValues:NO]; [request setIncludesPropertyValues:NO];


NSArray *objectsToTruncate = [self MR_executeFetchRequest:request inContext:context]; NSArray *objectsToTruncate = [self MR_executeFetchRequest:request inContext:context];
Expand Down

0 comments on commit be9d5c4

Please sign in to comment.