Delete all relations when child has been deleted #44

Closed
opened 2023-01-14 21:36:48 +01:00 by Dutch · 0 comments
Owner

Currently, when a user deletes an entity with "DeleteWithChildren", only the relation between the entity and its children will be deleted. Any relation from another entity to the deleted entity remains.

Also, when a user deletes an entity with the "delete" method, no relation will be deleted, which is ok. But there is currently no method to clean the relationship table.

This is of course not an urgent problem. Used ids won't be used again (normally), therefore any old relation will still be there, but simply unable to resolve and therefore ignored.

Currently, when a user deletes an entity with "DeleteWithChildren", only the relation between the entity and its children will be deleted. Any relation from another entity to the deleted entity remains. Also, when a user deletes an entity with the "delete" method, no relation will be deleted, which is ok. But there is currently no method to clean the relationship table. This is of course not an urgent problem. Used ids won't be used again (normally), therefore any old relation will still be there, but simply unable to resolve and therefore ignored.
Dutch closed this issue 2023-01-15 14:17:11 +01:00
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Dutch/RoomEx#44
No description provided.