Hello guys,
I have the following entities: Inner, InnerLevel2, InnerLevel3. InnerLevel3 is contained (@Composition) in InnerLevel2 and InnerLevel2 is contained (@Composition) in Inner.
The use case is:
- I open the single entity browser I have in my project.
- I create the
Innerentity. - In the create dialog, I create the
InnerLevel2entity. - In
InnerLevel2's create dialog, I create theInnerLevel3entity. - I click OK on all dialogs and everything is created.
- I select the entity from the table, then I press on the button next to the
createbutton. - This button calls a method in a service that deletes the selected item and I go to entity inspector to check whats up.
-
Innerentity is deleted, but the other entities that SHOULD have been cascaded are still there.
I expected that deleting Inner would cascade the deletion of InnerLevel2 that would cascade the deletion of InnerLevel3. This does not happen.
This is a recurring issue I have in a bigger project of mine.
Platform version 6.10.14
Please tell me if my understanding is correct and if so, why is the expected behavior not happening.
Thanks,
Alex
Demo project
delete-test.zip (89.5 KB)