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

Support Cascading Deletes #746

Open
simonask opened this issue Apr 8, 2015 · 12 comments
Open

Support Cascading Deletes #746

simonask opened this issue Apr 8, 2015 · 12 comments

Comments

@simonask
Copy link
Contributor

simonask commented Apr 8, 2015

No description provided.

@kneth
Copy link
Member

kneth commented May 21, 2015

Android/Java issue: realm/realm-java#1104

@fryossi
Copy link

fryossi commented Nov 10, 2016

Please include a solution for updating an existing object (delete the children before update).

@finnschiermer
Copy link
Contributor

@fryossi Could you be more specific, I'm not sure I understand exactly what you're asking for?

@fryossi
Copy link

fryossi commented Nov 10, 2016

As @snowpong wrote:

If you call copyToRealmOrUpdate() on an existing root object, it will overwrite the child objects with their new data. Note: You'll have orphaned children if the updated root object no longer refers to them. For example Person "Bob" refers to two Dogs, "Fox" and "Rex". But then "Fox" dies and when you call copyToRealmOrUpdate() with a new version of "Bob" you'll still have "Fox" dangling in Realm but "Bob" no longer refers to it.

@Zhuinden
Copy link

4.0.0 Release notes

Enhancements

Add method to recursively delete an object tree PR #2752 Issue #2718

@roberhofer
Copy link

AHA Reference: https://realmio.aha.io/features/PROD-13

@roberhofer roberhofer added the Aha label Jun 20, 2018
@VenomVendor
Copy link

Is this feature coming anytime soon?

@bmunkholm
Copy link
Contributor

@VenomVendor I would love to be able to promise that - pending a common understanding of "soon" ;-) While core already has some support for this, we also need to solve it in the context of Sync before we are ready to expose it in SDKs. There are some constraints on that front that makes it hard for us to predict timelines. But this is one of the major features that soon will be highest on the priority list. The best I can say right now is that it's not abandoned, we will get it done - it's likely in the top-5 priority list of bigger items that we hope to tackle "soon". I know that's pretty vague...Not sure if that helps you.

@alihesari
Copy link

@bmunkholm Thanks for your explanation. We use Realm-js for a project. This feature is fifth priority in your list and expressing the order of priority does not help us much to plan. If you can provide an approximate date to add this feature.

@bmunkholm
Copy link
Contributor

As we unfortunately can’t provide a timeline, I would suggest you to not depend on this feature for your project.

@pedrosimao
Copy link

I would love to see this on Realm JS.

@RealmBot
Copy link
Collaborator

➤ Jørgen Edelbo commented:

Does embedded objects solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests