-
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
Freeze objects: isFrozen and linkingObjects don't work #6568
Comments
Why a frozen object calling On top of that, I don't see where RLMObject has isFrozen implemented anywhere :S The array test, instead, returns true when calling |
Yeah, that test is clearly nonsense. |
@tgoyne Anything regarding the crash? We should be able to access linkingobjects on a frozen copy correct? |
Thanks @tgoyne for fixing it! Do you know more or less when a new version with your changes will be released? |
Goals
Generate a frozen copy of an RLMObject subclass
Expected Results
The generated frozen object should return true. The frozen object should be able to access its linking objects.
Actual Results
The generated frozen object returns false to
isFrozen
. Accessing its linkingObjects generates an EXC_BAD_ACCESS crashCrash:
Code Sample
Version of Realm and Tooling
Realm framework version: ? Realm Cocoa 5.0.2
Realm Object Server version: ? N/A
Xcode version: 11.3.1
iOS/OSX version: Simulator iOS 13
Dependency manager + version: Swift Package Manager
The text was updated successfully, but these errors were encountered: