With the latest Realm Cocoa in Swift + Realm Cloud. I am writing two new objects Person and Dog in one write transaction to a partially synced Realms where Dog has a property of type Person. I discovered that, if that Person type property on Dog is the one that I created in the same write transaction, aka has not synced to the cloud yet, then the creation of Dog is immediately reverted once synced. And it has no error log on server or client side.
If I create a Dog with an existing/synced Person then everything works.
This is an expected behavior? If so how do I suppose to create two new objects with a dependency like this?
Thanks a bunch!