casademora is correct but I'll try to be more precise because I encounter some issues when converting my
[[NSManagedObjectContext MR_contextForCurrentThread] MR_saveToPersistentStoreWithCompletion:nil];
into
[MagicalRecord saveWithBlock:^(NSManagedObjectContext *localContext)
You have to be careful to change or create your entities inside the block but it's not enough.
To retrieve your entities you must use selection request with context too.
MR_findFirstByAttribute:withValue
is not enough and updates won't be saved. You have to use instead
MR_findFirstByAttribute:withValue:InContext:localContext
And when creating entity, it's the same
MR_createEntity
must be change to
MR_createEntityInContext:localContext
Then it works like a charm :)