-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
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);
[_objLead insertObject:o inLeadStatusListAtIndex:0];
[self.view makeToast:dict[@"message"]];
[self.navigationController popViewControllerAnimated:YES];
}];`
Save successfully and and arr contains 1 object that value of all parameters are not there.
thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels