#66447Annotation @cascade remove does not delete hidden child data
Description
You have a domain model (for example a blog entry) and this domain model has an object storage of other domain models (for example comments). Both models have no deleted flag and will be removed right away from the database. The object storage has the annotation @cascade remove. If you remove a blog entry, only comments, that are not hidden, will be removed too. Hidden comments will stay in the database as orphans. That can’t be right…
Reviews 1
History 15
-
Gerrit Code Review pushed patch set 1 for main to change 79450 status
NewUnder Review <span data-processor="relativetime" data-value="2023-06-16T23:15:20+00:00" > 06/16/23, 23:15 </span> -
Gerrit Code Review pushed patch set 2 for main to change 79450 <span data-processor="relativetime" data-value="2025-01-31T07:08:04+00:00" > 01/31/25, 07:08 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 79450 <span data-processor="relativetime" data-value="2025-01-31T07:10:02+00:00" > 01/31/25, 07:10 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 79450 <span data-processor="relativetime" data-value="2025-03-11T10:32:50+00:00" > 03/11/25, 10:32 </span>
Note for future-self:
Check out Extbase -> Persistence -> Generic -> Backend -> persistObjectStorage()