Project

General

Profile

Actions

Feature #17434

closed

Allow more than one parent field pointing to the same children table with foreign_field

Added by Oliver Hader over 17 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-07-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

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

Actions

Also available in: Atom PDF