Feature request #9549
Delete feature and related records.
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||18136|
It is cool that I can digitize a feature, then populate the child tables (as defined by QGIS Relations). But when I delete this feature, I was expecting that it would also delete the records in the child tables.
#2 Updated by Matthias Kuhn almost 8 years ago
For now: the easiest would be to use a database which has support for "ON DELETE CASCADE"
This will open up a question which I had in mind for some time already. As with all the relations stuff, layers cannot be treated as standalone anymore we need to find a solution.
What would be the workflow for this? Would one have to turn the child layer into edit mode manually? If the parent layer is saved, should the child layer be saved as well automatically? There may be other pending changes in the edit buffer which you did not want to commit yet.