-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Upserting an object with an embedded object crashes the app #7163
Comments
Hi @sochalewski , |
@pavel-ship-it Thank you for your answer, it makes sense. Then I'll close the issue. |
The code sample you posted is something that's supposed to work and we just have some overly-eager validation. |
Fixed in pull request #7301 |
@pavel-ship-it since this was fixed... in #7301 should we close the issue? |
Goals
Upsert an object that contains an embedded object.
Expected Results
Upsert works flawlessly.
Actual Results
Upsert crashes an app.
Steps for others to Reproduce
MyObject
).Code Sample
Models:
Code:
Code that works, but I guess is a workaround instead of a solution.
I understand it relates how
Object.init(value:)
initializer works (shallow instead of deep copy), but as I callRealm.add(_:update:)
with.modified
instead of.all
, I expected this to work properly.Version of Realm and Tooling
Realm framework version: 10.7.0
Realm Object Server version: N/A
Xcode version: 12.4
iOS/OSX version: 14.4
Dependency manager + version: CocoaPods 1.10.1
The text was updated successfully, but these errors were encountered: