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 almost 17 years ago. Updated over 10 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 #1

Updated by Beat Takeshi over 16 years ago

+1!
This behaviour limits the reusability of child tables drastically.

If someone points me in the right directioin I would be willing to fix this, can't be that hard.

Actions #2

Updated by Ingmar Schlecht about 16 years ago

I don't see the point.

Why do you use
'foreign_field' => 'parent',
for both of the fields?

I would propose to use
'foreign_field' => 'parent',
for the first field,

and use
'foreign_field' => 'daddy',
for the second field.

Of course, the child table would have to contain both fields "parent" and "daddy", but what's the problem? If that doesn't work - well, that's a bug. But conceptionally, I don't see why it should be possible to link to the same child table using the same parent pointer field twice!

Ingmar

Actions #3

Updated by Niels Pardon about 15 years ago

In my opinion this is a duplicate of: http://bugs.typo3.org/view.php?id=7063

Actions #4

Updated by Alexander Opitz over 10 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

Hi,

as this issue is very old. Is this feature missing in newer versions of TYPO3 CMS (6.1)?

Actions #5

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this ticket.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF