-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Fault #106
Comments
Please, read about how nested contexts work. Also you might be interested in reading of the source code of the Magical Record in order to understand how does local saving works. It has nothing to do with the FastEaysMapping itself. Issue lies in your attempt to talk to the objects of the dead context. |
But can you tell me how i can prevent context dead?? |
@vishaldeshai MagicalRecord destroys
|
Hello,
Why my data fault??
`[MagicalRecord saveWithBlock:^(NSManagedObjectContext * _Nonnull localContext) {
arr = [FEMDeserializer collectionFromRepresentation:[dict objectForKey:@"data"] mapping:[_LeadStatusList defaultMapping] context:localContext];
} completion:^(BOOL contextDidSave, NSError * _Nullable error) {
NSLog(@"%@",arr[0]);
_LeadStatusList *o = arr[0];
NSLog(@"%hd",o.interactionWith);
NSLog(@"%hd",o.outcomeID);
NSLog(@"%@",o.orderExpectedDate);
NSLog(@"%@",o.nextActionTime);
NSLog(@"%@",o.createdTime);
NSLog(@"%@",o.reminderTime);
Save successfully and and arr contains 1 object that value of all parameters are not there.
thanks in advance.
The text was updated successfully, but these errors were encountered: