Skip to content

Swift 4 - always creates instead of update. #134

@igordeoliveirasa

Description

@igordeoliveirasa

After findOne or all it looks like setId of LBPersistedModel is not working well.

Specifically here:

- (LBModel *)modelWithDictionary:(NSDictionary *)dictionary {
    LBModel *model = [super modelWithDictionary:dictionary];
    id obj = dictionary[@"id"];
    if (obj) {
        [(LBPersistedModel *)model setId:obj];
    }
    return model;
}

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