I'm using TYPO3 7.x LTS. I've added a custom table with a TCA entries for it. Each record of this table has a pid
set to the corresponding page.
However, when page is deleted, TYPO3 automatically removes records in my table that are associated with that page. This is fine, I guess, but I'm in a situation where I can't loose those records.
Is there a nice way to tell TYPO3 to not delete records from my table along with a page? I've studied the TCA reference documentation but I found nothing there.
I'm looking for something like enableCascadingDelete
option which is available for an inline
type of fields.
I know I can define a delete
column, which will be updated instead of record being removed but this solution is not elegant.
The other not elegant solution I can think of would be to set the rootLevel => 1
on the table and introduce another field, like page_id
or something.
Is there an elegant solution for my problem?