-
Notifications
You must be signed in to change notification settings - Fork 59
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
Support embedded objects #551
Comments
Requires C-API support: realm/realm-core#5408 |
@rorbech |
@thipokch Yep. The core part is already in place and included in the PR #797. |
@rorbech Congrats on the GA release! 🎉 I'm so looking forward to trying embedded objects out. |
@rorbech class Home() : RealmObject {
var pets : RealmList<Animal> = realmListOf()
}
sealed interface Animal {
class Dog(): Animal, RealmObject {
// ...
}
class Cat(): Animal, RealmObject {
// ...
}
} |
We should support defining realm objects as embedded to indicate that object life cycle should follow its parent.
The text was updated successfully, but these errors were encountered: