Skip to content

Symposium setting IOS CoreData To-One relationship to 'nil' does not trigger event on JS-Backbone #17

Description

@bayareacoder

When deleting a To-One relationship in CoreData by setting the relationship field to nil, Simperium shows to delete this field from storage (it is not showing up anymore in the Simperium web data browser). This is ok however I do not seem to receive a change event on the Backbone model in JS to update this attribute.

When subsequently I change another attribute of this object in JS, Simperium backend not only sees the updated attribute but also the relationship attribute sent by JS (which it had deleted before), and will re-establish it on the server with the 'old' value sent by JS. Then the sync with IOS will overwrite the 'nil' relationship.

How can I update a To-One relationship to 'no relationship' in CoreData and have them correctly updated in JS-Backbone?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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