#101522\TYPO3\CMS\Core\Database\RelationHandler::purgeItemArray only works with workspaces enabled
Description
I have the following situation: I want to use the datahandler to delete records in the backend via command map delete.
I have table a, table b and table a_b_mm:
| _.uid | _.name |
|---|---|
| 1 | A |
| _.uid | _.name |
|---|---|
| 1 | B |
| _.uid_local | _.uid_foreign |
|---|---|
| 1 | 1 |
When deleting either record A or B with uid 1, I expect the data handler to remove the entry in the mm table.
\TYPO3\CMS\Core\DataHandling\DataHandler::deleteRecord() calls
@\TYPO3\CMS\Core\DataHandling\DataHandler::deleteRecord_procFields()@
which states:
* Before a record is deleted, check if it has references such as inline type or MM references.
* If so, set these child records also to be deleted.
Therefore, I was under the impression that mm entries would be removed but it seems that the RelationHandler only removes the identified rows (\TYPO3\CMS\Core\Database\RelationHandler::purgeItemArrayHandler()) if workspaces are enabled.
However, I would expect the DataHandler to clean up also records without workspaces enabled.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.