Project

General

Profile

Actions

Bug #66447

open

Annotation @cascade remove does not delete hidden child data

Added by B. Kausch over 9 years ago. Updated over 1 year ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-04-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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...

Actions #1

Updated by Benni Mack almost 3 years ago

Note for future-self:

Check out Extbase -> Persistence -> Generic -> Backend -> persistObjectStorage()

Actions #2

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79450

Actions

Also available in: Atom PDF