[BUGFIX] Make extbase subclasses work with numeric types 57/50357/2
authorSascha Egerer <sascha@sascha-egerer.de>
Tue, 25 Oct 2016 05:52:44 +0000 (07:52 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 25 Oct 2016 16:41:39 +0000 (18:41 +0200)
commit7256ce1f9e6a416eed9591e83c859d0522fc39a1
treecc2af797dca1052dc31a4b52955a3d9c39d5696c
parentfd46561ff7ffa20f6fd0175a51b9922193dc8ad1
[BUGFIX] Make extbase subclasses work with numeric types

The extbase subclasses configuration does currently not work with a
numeric database field that identifies the type of a record. This is
due to a strict comparison that compares the stringish TypoScript
value against the numeric database value.

Both values are casted to string to make the comparision work.

Resolves: #78416
Releases: master, 7.6
Change-Id: Iea4cf41301892a6788facd3befe5533e263cc3f6
Reviewed-on: https://review.typo3.org/50357
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php