-
Notifications
You must be signed in to change notification settings - Fork 223
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
How to manually call the save method? #101
Comments
@foxling are you using CoreData? |
@pepibumur yes |
Are you enabling the autosaving value of |
@pepibumur DefaultCDStack.startObserving() is only call in DefaultCDStack.backgroundContext(), but i'm not use backgroundContext, so the mergeChanges method is never called, the autosaving is not useful. |
Why aren't you using the background context? The stack is setup to connect those context with the saving behaviour. @foxling |
I'm also having this issue. The autosaving value of |
Thanks @pepibumur ! Really appreciate it |
Thanks @pepibumur |
Had the same issue - pulled the latest/ fix off the repo and it's missing "SugarRecordArray" ? |
@thewhitewood remove the group from XCode and add the entire library again because you're missing a new class I added to the library but that you haven't added to the XCode target as a file to be compiled. |
Cool - my bad :( |
I found that when i call model.save() or model.endWriting(), they are not save to database.
Sometimes , I want to manually call the save method to save data immediately in database.
like:
The text was updated successfully, but these errors were encountered: