[BUGFIX] DataMapFactory::resolveTableName must remove leading backslashes 03/24603/2
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:15:31 +0000 (21:15 +0200)
commita3f8dfe30249e496dc590c758a38463c3546af29
tree1b05b0b486b181ab7e2685ae01e90a87ef58b0c0
parent9b4462ba8b0ce2a23c2db306a515ab73af7b07d6
[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/24603
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