From d2f29b66c1d89c6fbb40352d42b9abbddf2dc5a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BCrk?= Date: Tue, 21 Nov 2023 15:05:53 +0100 Subject: [PATCH] [TASK] Avoid deprecated `SchemaManager->listTableDetails()` method Doctrine DBAL deprecated `SchemaManager->listTableDetails()` within `3.x` [1]. That means that this method will be removed with `doctrine/dbal 4.x`. To pave the way towards the next `doctrine/dbal` major version, the usage is replaced with the `SchemaManager->introspectTable()` method. [1] https://github.com/doctrine/dbal/blob/3.7.x/UPGRADE.md#deprecated-abstractschemamanager-schema-introspection-methods Releases: main --- Classes/Core/Functional/Framework/DataHandling/DataSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Core/Functional/Framework/DataHandling/DataSet.php b/Classes/Core/Functional/Framework/DataHandling/DataSet.php index 787b9018..0fbdbf60 100644 --- a/Classes/Core/Functional/Framework/DataHandling/DataSet.php +++ b/Classes/Core/Functional/Framework/DataHandling/DataSet.php @@ -73,7 +73,7 @@ public static function import(string $path): void $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($tableName); $platform = $connection->getDatabasePlatform(); // @todo Check if we can use the cached schema information here instead. - $tableDetails = $connection->createSchemaManager()->listTableDetails($tableName); + $tableDetails = $connection->createSchemaManager()->introspectTable($tableName); foreach ($dataSet->getElements($tableName) as $element) { // Some DBMS like postgresql are picky about inserting blob types with correct cast, setting // types correctly (like Connection::PARAM_LOB) allows doctrine to create valid SQL