Skip to content

Commit

Permalink
Fixing rookie mistake :/
Browse files Browse the repository at this point in the history
  • Loading branch information
blackgold9 committed Oct 3, 2012
1 parent a451eb4 commit 72dc5a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ - (void)contextWillSave:(NSNotification *)notification
if (context.insertedObjects.count > 0) {
NSArray *insertedObjects = [[context insertedObjects] allObjects];
MRLog(@"Context %@ is about to save. Obtaining permanent IDs for new %lu inserted objects", [context MR_description], (unsigned long)[insertedObjects count]);
NSError *error;
NSError *error = nil;
[context obtainPermanentIDsForObjects:insertedObjects error:&error];
[MagicalRecord handleErrors:error];
}
Expand Down

0 comments on commit 72dc5a4

Please sign in to comment.