Issue Bug Closed

#109437Analyze DB structure failes with 2nd database & table mapping

Georg Ringer 03/31/26, 09:36 updated 04/21/26, 11:30

Description

as soon as a 2nd DB and a tablemapping is available, the DB compare fails

'DB' => [
    'Connections' => [
        'Default' => [
            'dbname' => 'db',
            'driver' => 'mysqli',
            'host' => 'db',
            'password' => 'db',
            'port' => 3306,
            'user' => 'db',
        ],
        'second' => [
            'dbname' => 'test',
            'driver' => 'mysqli',
            'host' => 'db',
            'password' => 'root',
            'port' => 3306,
            'user' => 'root',
        ],
    ],
    'TableMapping' => [
        'adresse' => 'second',
        'einheit' => 'second',
        'mitarbeiter' => 'second',
    ],
],
Too few arguments to function TYPO3\CMS\Core\Schema\TcaSchemaFactory::__construct(), 0 passed in /var/www/html/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 2840 and exactly 3 expected

in /var/www/html/typo3/sysext/core/Classes/Schema/TcaSchemaFactory.php line 41
in /var/www/html/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 2840
instance = new $finalClassName(...$constructorArguments);

in /var/www/html/typo3/sysext/core/Classes/Database/Query/Restriction/DeletedRestriction.php line 36
$this->tcaSchemaFactory = GeneralUtility::makeInstance(TcaSchemaFactory::class);

in /var/www/html/typo3/sysext/core/Classes/Database/Query/Restriction/AbstractRestrictionContainer.php line 109
return GeneralUtility::makeInstance($restrictionClass);

in /var/www/html/typo3/sysext/core/Classes/Database/Query/Restriction/DefaultRestrictionContainer.php line 43
...
in /var/www/html/typo3/sysext/core/Classes/Database/Connection.php line 120
in /var/www/html/typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php line 1417
in /var/www/html/typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php line 255
in /var/www/html/typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php line 108
in /var/www/html/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php line 74
in /var/www/html/typo3/sysext/install/Classes/Controller/MaintenanceController.php line 236

Reviews 3