sbonami / PFIncrementalStore

Offline Parse with Core Data Persistence, an NSIncrementalStore subclass.
http://sbonami.github.io/PFIncrementalStore/
MIT License
97 stars 15 forks source link

to-many relationships not syncing #41

Open bitsmedia opened 10 years ago

bitsmedia commented 10 years ago

I have implemented PFIncrementalStore in a simple 2-table coredata project with both tables linked to each other by a to-many relationship.

When saving my managed object to the coredata context, the object gets pushed to Parse (each class gets automatically created the first time) but nothing happens for the relationships?

Am I supposed to pre-define these relationships on Parse?

Alydyn commented 10 years ago

Sometimes when you add new properties to a previously existing class, you have to refresh your browser (cmd-R), rather than just refreshing the data view that Parse provides.
Alternatively you can pre-define as you mentioned.

sbonami commented 10 years ago

@Alydyn thanks for offering up a few suggestions, much appreciated!

I know that one-to-many relationships work, but I'll need to look into many-to-many relationships and how those are handled.