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

save() method doesn't update records #288

Open
melikbozkurt opened this issue Dec 30, 2022 · 1 comment
Open

save() method doesn't update records #288

melikbozkurt opened this issue Dec 30, 2022 · 1 comment

Comments

@melikbozkurt
Copy link

I am using sqfentity 2.3.0+5 package for my mobile app to store local data. In the documentation it says that save() method can be used for both updating and inserting but when I insert some data with save() method I can not update it after using again save() method.

Here is the example usage of it:

await ClubData( id: data[i]['id'], isUnlocked: 0, currentLevel: 1, totalLevel: data[i]['players'].length, logoURL: data[i]['logoURL'], points: 0, name: data[i]['name']) .save();

Let's say that data[i]['players'].length is equal to 10 and I insert the data using save() method for the first time. Then data[i]['players'].length increases and I use the same method again but totalLevel doesn't update. What am I doing wrong? Can you help me?

@mzilaid
Copy link

mzilaid commented Jul 11, 2023

Same issue

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

2 participants