caiyue1993 / IceCream

Sync Realm Database with CloudKit
MIT License
1.94k stars 245 forks source link

Fixed one-to-many relationship recovering #233

Closed yulian948 closed 3 years ago

yulian948 commented 3 years ago

Fixing #231

There was an issue in PendingRelationshipsWorker. It's pendingListElementPrimaryKeyValue keys and values needed. to be replaced, because it's not correct to use propertyName as a key, since it's the same for all objects in the list (eg. if I have a list called "cats", only one object from that list will be processed).

Feel free to ask questions if any :)

caiyue1993 commented 3 years ago

Hi @yulian948, Yes I've noticed this issue as well and many thanks for the fix! Ready to be merged. Thank you again, well done :)