Skip to content

The child-references of a record are not marked as deleted if enableCascadingDelete is TRUE #26

Answered by klamparski
Moongazer asked this question in Q&A
Discussion options

You must be logged in to vote

Extbase uses some things from TCA configuration but does not reflect all the features. As far as I know (can't test it at the moment) this one is not reflected and that's why it works for you only in backend. To achieve cascade remove on Extbase you need to use its annotation:

**
 * @TYPO3\CMS\Extbase\Annotation\ORM\Cascade("remove")
 */
public $property;

Regarding cascade persistence annotation from t3api - it's just security enhancement of Extbase as Extbase does not support any other cascade than remove, unfortunately. We hope some day we can remove it and relay on pure Extbase also for persistence. Here you can find more info and example usage of cascade persistence.

Please try it wi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kszymukowicz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #25 on February 20, 2021 13:12.