drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 131 forks source link

2.0.1 - Invalid Relationships #183

Closed asciiz closed 9 years ago

asciiz commented 10 years ago

I am using a parent-(to-many)-children relationship:

bildschirmfoto 2014-08-21 um 05 43 15

In v 2.0, this works correctly and I can see (in „shouldSaveMergedChangesInManagedObjectContext:“) that the relationship is properly assigned .

In v 2.0.1, it seems that this relationship is not set (parent == nil) and the child is therefore not assigned to a parent. I am getting (CDELoggingLevelVerbose):

"Could not find object for identifier while setting to-one relationship. Skipping: parent"

In both cases, I am using the same Ensembles data files, exactly same source, just another Ensembles Framework version.

drewmccormack commented 10 years ago

There is only one commit that I think could possibly have altered this. The commit is: 803107423977b97ced0106464f2236172d4df50b

It would really help to see if this is the problem if you could test with the rev just before this commit, i.e.: 01c5f75949dd90e385f42c8432f90e0141e69336 If that one works, I can look further at the changes.

Let me know if you need binaries, and which ones.

asciiz commented 10 years ago

Thank you, Drew. I need a binary for OS X.

asciiz commented 10 years ago

ok, the PreChange Framework works fine (tested on 10.8.5/10.9.4, without batch traversal).

drewmccormack commented 9 years ago

This has been fixed in recent master.