[BUGFIX] Make extbase subclasses work with numeric types 74/50374/2
authorSascha Egerer <sascha@sascha-egerer.de>
Tue, 25 Oct 2016 05:52:44 +0000 (07:52 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 25 Oct 2016 16:50:49 +0000 (18:50 +0200)
commited57ea9f9279bf02df74709f7f1eb7aa64aa5850
treefa38a2bd8357a0975595f9290f365cf383f4b287
parent075d71ded0799065ead61f531c144261e8a81df4
[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/50374
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php