I am currently working a lot with Realm. I love it! But one thing that is really annoying is that I cannot set my primary key to zero when using copyToRealmOrUpdate. I am returning my identifier from the server. The first identifier is zero. Therefore my app immediately displays the message: Primary key constraint broken. Value already exists: 0. If it were a different number than just fine, but it drops to zero. Is this a mistake or can someone help me?
Thank!
source
share