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

Left-over instance references after EReference was deleted #141

Open
annighoefer opened this issue Dec 11, 2023 · 1 comment
Open

Left-over instance references after EReference was deleted #141

annighoefer opened this issue Dec 11, 2023 · 1 comment

Comments

@annighoefer
Copy link
Contributor

I have issues with objects that still have an reference instance left over, after the corresponding EReference of the EClass was deleted using .delete(). In this case the reference is still there, but the type in None an makes a .delete() of the object fail. This happened only for EReferences not for EAttributes so far. To fix this, I manually search all instance of the class of the deleted EReference and if hasattr(obj,reference.name) is true, I call delattr(...).

@aranega
Copy link
Member

aranega commented Mar 9, 2024

Hi @annighoefer ,

Thanks a lot for the issue, and really sorry for the delay of the answer. I'm trying to get back on track slowly.

If I understand well, the issue comes from the fact that you delete a EReference (let's say myref) of a EClass and you want the existing instances of the EClass to have the relationship myref removed? Or is it related to something else? If you have a small test-case, that could help me to target better your issue :)

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

No branches or pull requests

2 participants