[BUGFIX] Remove relations from MM table 80/51080/2
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:41:03 +0000 (15:41 +0100)
commitc4bc3e1b605da6b355c6bc9ac0952a8a966da61d
tree5b3e96bb61bc1992f8f481edd5264a5b4e9b71b7
parent218e6e5a6cf74caa1dcc2e622ecd5405281af02a
[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/51080
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php