Skip to content
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

Swift 4 - always creates instead of update. #134

Open
igordeoliveirasa opened this issue Dec 3, 2017 · 0 comments
Open

Swift 4 - always creates instead of update. #134

igordeoliveirasa opened this issue Dec 3, 2017 · 0 comments

Comments

@igordeoliveirasa
Copy link

igordeoliveirasa commented Dec 3, 2017

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant