Issue Bug Under Review Quiet

#108495The DataHandler does not take tca overrides of relations into account when translating records

Philipp Wrann 12/16/25, 11:23 updated 10/15/26, 21:31

Description

This issue is hard to track down/reproduce, i will try to do my best explaining:

When the same record type has 2 TCA fields holding inline-relations to the same table, you often work with foreign_match_fields configuration, so the relations can be assigned/loaded correctly.

This works fine in most situations. But imagine you do the following on one specific content element:

<?php
// the role field of the child record has no default foreign_match_fields-mapping but in some cases i need to add it via tcaOverides
// so 2 distinct relation-fields will work
$GLOBALS['TCA']['tt_content']['types']['some_type']['columnsOverrides']['relation_field']['config']['foreign_match_fields']['role'] = 'some_role';

In my case the “role” field i defined on the relation table, does not by default have a [‘foreign_match_fields’ => ‘’] configuration, so the DataHandler has no constraint and loads all records. I think i might have to change my TCA a little but still – The question remains: Should the dataHandler apply columnOverrides when copying/translating records?

Reviews 1

History 01