Skip to content

Data Fault #106

@vishaldeshai

Description

@vishaldeshai

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions