[BUGFIX] Persistent classes with more than five name parts in extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / Mapper / DataMapFactory.php
index 86e7cde..4741d10 100644 (file)
@@ -150,7 +150,7 @@ class DataMapFactory implements \TYPO3\CMS\Core\SingletonInterface {
        protected function resolveTableName($className) {
                $className = ltrim($className, '\\');
                if (strpos($className, '\\') !== FALSE) {
-                       $classNameParts = explode('\\', $className, 6);
+                       $classNameParts = explode('\\', $className);
                        // Skip vendor and product name for core classes
                        if (strpos($className, 'TYPO3\\CMS\\') === 0) {
                                $classPartsToSkip = 2;