[!!!][BUGFIX] Remove support for TCA setting 'foreign_selector'
authorHelmut Hummel <helmut.hummel@typo3.org>
Fri, 14 Dec 2012 10:53:07 +0000 (11:53 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 8 Mar 2013 09:58:54 +0000 (10:58 +0100)
commite068f634245c738016b4880a0b39af3ca10568a0
tree400b6aec83b1aec784f6656810e694b83dce01ac
parent50b63ee3319b315c944bf80f754008064dc57d91
[!!!][BUGFIX] Remove support for TCA setting 'foreign_selector'

The TCA setting 'foreign_selector' is a UI feature which can be
configured for field in a relation table, when this table
is editable using the IRRE feature. Then a selector box
is rendered making it possible to select records from a child
table.

In this scenario the relation table itself may contain other
editable fields, which should be represented by a domain model.

The latter is currently not possible with Extbase because
'foreign_selector' triggers the DataMapper to resolve a
many to many relation to the child table.

Solution is to remove this behaviour and let the DataMapper
resolve the one to many relation to the relation table.

Find a test setup at https://gist.github.com/4284545

Change-Id: I2d8366f9ce54470999c1b02ad2098359f5aaa6b3
Fixes: #10770
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/17159
Reviewed-by: Thomas Maroschik
Reviewed-by: Sebastian Michaelsen
Tested-by: Sebastian Michaelsen
Reviewed-by: Marc Bastian Heinrichs
Tested-by: Marc Bastian Heinrichs
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Arjen Hoekema
Tested-by: Arjen Hoekema
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php