-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Realm Lists are being destroyed by SyncEngine #179
Comments
Hello @jln19 I had a look to the sample app and I saw they do linking via
I guess I will now try to change my relationship to this. |
Looks like other people facing the same problem: |
@jln19 yeah we have to use LinkingObjects. Lists are not yet supported yet. |
@phr85 that's unfortunate that Lists are still not supported. I'm not sure how I would use LinkingObjects, because owners can have more than one dog, but dogs can also have more than one owner in my case. |
I've also tried this as a hack:
But sadly the inner for loop doesn't execute because the dog has no owners :( I've also tried changing the sync order as mentioned on another thread. i.e:
But that didn't help either. |
+1 for this, everything was going great until my lists weren't syncing |
Well this is unfortunate. I guess the options now are to pay $30/month and figure out the Realm server, or try to manually save a list of IDs and re-create the |
Update but still bad news. I thought I'd try storing a list of IDs from which I could restore the lost objects, like:
But that's not supported by Realm:
Realm doesn't support array primitives and says we must use |
+1 for this too, was also going fine but my lists are not syncing. Is there anyway to create a many-to-many relationship with IceCream? |
@jln19 I'm unclear on whether IceCream doesn't support Lists of primitives ( Also you could try storing a CSV string of IDs. |
Looking from https://github.com/caiyue1993/IceCream/blob/master/IceCream/Classes/CKRecordConvertible.swift#L89 Looks like IceCream does support List, and List is not supported right now. |
I encourage everyone to donate, the developer is currently trying to make |
Just did - benefitting a lot from this library with my apps! |
Donated - thanks for the awesome work. |
Hi guys, many thanks for the donation and it really helps 😄 And I've been working on the List support #206 (which contains Object subclass) for a while and happily it will reach our expectation very soon. Please hold on for one moment and you guys could check the Besides, as for this question
IceCream has supported List of primitive types already since the early version
|
@caiyue1993 I just tested the |
@kushsolitary - You didn't have any issues when deleting items from a |
You're right, I spoke too soon. |
Hello, is there any update on this? |
Hi, Please refer to the README for the detailed usage. Better late than never, huh? Thank you guys still cause I've been too busy on my daily job. Just open the issue ticket if you encounter further problems. |
@caiyue1993 - thanks for all your hard work, Ice Cream is awesome!!
This doesn't work for me. I would like to store a List<Int?>(), however this doesn't appear in my CloudKit schema. My project has:
I this example, both Any idea why this is not saving? Has anyone been able to store List<Int?> before? |
IceCream seems like an awesome solution to Realm/iCloud! I've got sync somewhat working. However I'm having a fatal issue.
In my situation I need Dogs to have the option to have more than one Owner. So in Realm:
Owner:
let dogList = List<Dog>()
Dog:
let owners = LinkingObjects(fromType: Owner.self, property: "dogList")
Everything works fine in Realm. When I create a new Dog, I do this:
Once I add the code below code however, all of my dogs get removed from their owners.
The dogs are still visible in Realm Studio (they still exist in Realm), but their relationship to their owner(s) has been destroyed. All of my owners show zero objects in their dogList, whereas they had nonzero objects before SyncEngine runs. Do you know why this is happening? Again this only happens when I start the SyncEngine. If I comment that out, all of my relationships are maintained in subsequent app launches.
The text was updated successfully, but these errors were encountered: