Feature #17434
closedAllow more than one parent field pointing to the same children table with foreign_field
0%
Description
The following field configuration of a parent record in TCE is currently not possible:
'columns' => array(
'firstchildren' => array(
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_myext_child',
'foreign_field' => 'parent',
),
),
'secondchildren' => array(
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_myext_child',
'foreign_field' => 'parent',
),
),
),
The reason is, that with foreign_field the children are selected by the table and the uid in the field 'parent'. Thus, the children are not identified to with field in the parent record they belong.
The feature request is to have a new TCA property likle 'foreign_fieldfield' that defines a field on the child side storing the fieldname of the parent record creating the child.
The attached extension "test_required" reproduces this behaviour.
(issue imported from #M5897)
Files