[BUGFIX] Remove relations from MM table 03/50103/4
authorNicole Cordes <typo3@cordes.co>
Fri, 7 Oct 2016 11:58:00 +0000 (13:58 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 31 Dec 2016 14:40:45 +0000 (15:40 +0100)
commit29dbc2fb66d855ecd95bd73cefc4768ef25f5e3f
treea545781b79a61964324e98a25151930a82160f2e
parenta98388be1501f0693138ce26f4e082363fecd8c6
[BUGFIX] Remove relations from MM table

If extbase deletes an object it doesn't delete its relations in an
MM table. This patch adds the check for a possible MM relation table and
ensures all relations get deleted as well. If the parent table supports
a deleted flag, no relations will be deleted to be able to restore the
parent record again.

Resolves: #78128
Releases: master, 7.6
Change-Id: Ibe2497c05838e261f9c67a80216385d6e60607cb
Reviewed-on: https://review.typo3.org/50103
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Robert Jelinek <robert.jelinek@riir.at>
Reviewed-by: Alexander Stehlik <alexander.stehlik@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php