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

model objects sync'd in wrong 'order' #26

Open
csrking opened this issue Oct 24, 2014 · 3 comments
Open

model objects sync'd in wrong 'order' #26

csrking opened this issue Oct 24, 2014 · 3 comments

Comments

@csrking
Copy link

csrking commented Oct 24, 2014

I have a core-data model with a few one-to-many relationships between entities (i.e. standard parent-child relationships, etc.) and I have successfully 'pushed' the data to dropbox by following the pattern in the Toado sample.

When I link a second device and the sync-manager attempts to populate core-data on that device from the records in the dropbox datastore it is failing, however, as it appears to be attempting to load the child entities before the parent entities are loaded and so the referential integrity is violated.

The only difference that I can see from my model and that of Toado is that my child-to-parent relationships are required whereas those in Toado are optional -- I'm hoping that I don't have to make all of these relationships optional... or do I?

@daikini
Copy link
Member

daikini commented Oct 24, 2014

As it is right now, they would need to be optional rather than required.

@csrking
Copy link
Author

csrking commented Oct 24, 2014

Okay thanks; I suppose I can live with that since the application logic should keep things in 'sync'.

Maybe something to mention in the docs somewhere.

@daikini
Copy link
Member

daikini commented Oct 24, 2014

That's a good point. I'll add it as a TODO item in the README.

@csrking csrking closed this as completed Oct 24, 2014
@csrking csrking reopened this Oct 28, 2014
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