Skip to content
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

Cannot set property to subtype #904

Closed
nielsenko opened this issue Sep 14, 2022 · 0 comments · Fixed by #905
Closed

Cannot set property to subtype #904

nielsenko opened this issue Sep 14, 2022 · 0 comments · Fixed by #905
Assignees

Comments

@nielsenko
Copy link
Contributor

nielsenko commented Sep 14, 2022

The class TZDateTime from timezone package implements DateTime, but it is not possible to set DateTime property on a realm model to a TZDateTime. This is due to how _intoRealmValue uses a switch on the values runtimeType instead of testing with is.

@nielsenko nielsenko self-assigned this Sep 14, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant