[BUGFIX] Do not detect single select fields as relation 65/53565/4
authorHelmut Hummel <typo3@helhum.io>
Fri, 21 Jul 2017 15:10:05 +0000 (17:10 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 8 Aug 2017 05:07:36 +0000 (07:07 +0200)
commit1f81eac355bf073f8deba6dab7bee5544abbda15
treeaaf246ac3c8ed7f2471ca03dbc79ed50a26b47f6
parent79af9d6c6d31bc3b825ddb20e65144d5aa7aeec3
[BUGFIX] Do not detect single select fields as relation

With https://review.typo3.org/50879/ all TCA select fields
are detected as relation to many, even when they are configured
as simple static select.

This leads to the row value to be pre-set as string (to hold comma
separated values), which leads to an exception in MySQL Strict Mode
when the select value field is defined as integer.

Therefore only detect renderType === selectMultipleSideBySide
as relational field

Resolves: #81043
Releases: master, 8.7
Change-Id: I54effaace3eb19034d86a9a74bbd5cc207e867f1
Reviewed-on: https://review.typo3.org/53565
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Henning Liebe <h.liebe@neusta.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php