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

@LinkingObjects doesn't work with EmbeddedRealmObject #1134

Closed
sirambd opened this issue Nov 17, 2022 · 2 comments · Fixed by #1141
Closed

@LinkingObjects doesn't work with EmbeddedRealmObject #1134

sirambd opened this issue Nov 17, 2022 · 2 comments · Fixed by #1141
Assignees

Comments

@sirambd
Copy link

sirambd commented Nov 17, 2022

Description
Since version 1.5.0 the Backlinks have been added and it's a great news but since the delegate function is waiting for a RealmObject then it doesn't work with the EmbeddedRealmObject class, but it works with RealmObject class.

Delegate function

public operator fun getValue(
        reference: RealmObject,
        targetProperty: KProperty<*>
    ): RealmResults<T>
@clementetb
Copy link
Contributor

Hi @sirambd, yes, we detached the development of backlinks on embedded objects from the regular objects.

The following PR provides a form of backlinks that might be useful for your use case: #1141

@sirambd
Copy link
Author

sirambd commented Nov 21, 2022

Oh nice, I can confirm that this is the answer to my problem.
Thank you @clementetb

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants