I ran into some issues with data not persisting with MagicalRecord and it turned out that using saveNestedContexts solved the problem. However according to the documentation, that method is being deprecated. What's the new practice for storing nested objects with MagicalRecord?
Use one of these methods:
- (void) saveToPersistenStoreAndWait;
- (void) saveToPersistenStoreCompletion:^(BOOL success, NSError *error)completion;
- (void) saveOnlySelfAndWait;
- (void) saveOnlySelfCompletion:^(BOOL success, NSError *error)completion;
These methods are present in the MagicalRecord.h header file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With