[BUGFIX] Do not detect single select fields as relation 55/53655/2
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:55 +0000 (07:07 +0200)
commitc50564aa8e267a57aeba6c87d4257654dbe26b96
tree02b1c9d4038c5068e23c3ba8d7a06adf400a5d4f
parent02666a5d20c4186832684055dfc04c9150db8218
[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/53655
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