magicalpanda/MagicalRecord — pull request #317 by mac-cain13 (2012-11-25 13:43:18+00:00)
Title: Make saveWithBlock: use saveNestedContexts

As you maybe know I was having quite some trouble with MagicalRecord and having it persist my data to disk. (See issue #314.) As it turns out I made some mistakes myself, but there is also an inconsistency between `saveWithBlock:` and `saveInBackgroundWithBlock:`.

The `saveInBackgroundWithBlock:` is using the `saveNestedContexts` methods and is persisting stuff to disk as expected, but when I switched to `saveWithBlock:` I lost data because it was using the not nested `save` methods.

In my opinion the behavior should be consistent to prevent confusing people (like me) and losing their data.

I hope one of the devs has some time to pull this in and save me and other a lot of time hunting down persistence issues. If there is anything I should change or improve before pulling these commits in let me know!