[BUGFIX] DataMapFactory::resolveTableName must remove leading backslashes 96/24596/4
authorAlexander Schnitzler <alex.schnitzler@typovision.de>
Fri, 11 Oct 2013 16:33:10 +0000 (18:33 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 11 Oct 2013 19:14:51 +0000 (21:14 +0200)
commit376d3b521b7ef0857daf266dfb408569b1100267
tree332d359b1540471034368e49fe1bb6ade75f61a8
parent5974292e96a06915d18766b29051aa6c6d6713f5
[BUGFIX] DataMapFactory::resolveTableName must remove leading backslashes

Currently the method just splits the given class name
by backslashes to detect the proper vendor name. If using
a leading backslash the algorithm of this function causes
a wrong result. Therefore all leading backslashes must be
removed first.

Releases: 6.2, 6.1, 6.0
Fixes: #52708
Change-Id: Icdc46facf66260bf528994964fb713d3dd24b3c6
Reviewed-on: https://review.typo3.org/24596
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
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