Project

General

Profile

Actions

Bug #79958

open

Cascade remove not working when using lazy loading

Added by Robert Jelinek over 7 years ago. Updated about 5 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2017-02-22
Due date:
% Done:

0%

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

Description

In case someone uses lazyloading in combination with cascade remove this will not working (lazy references sub-tables are not handled).

The following situation:

table A
id
b = 1:N reference to B with lazy loading and cascade remove

table B
id

When deleting an entry of table A by loading entry of table A and simply call repository->remove(<object A>), this is not working (tested at 7.16.11).

Actions #1

Updated by Kurt Gusbeth over 5 years ago

I can confirm this with TYPO3 8.7.24 too.
When I delete something in the Recycler, no cascade is done.
Therefore I will remove the @lazy in my extension...

Actions #2

Updated by Felix Nagel about 5 years ago

I'm using TYPO 8.7.27 with a parent referencing children using type inline. Cascade remove works as expected with lazy annotation.

I would suggest you two should post your exact TCA and model configuration.

Actions

Also available in: Atom PDF