[TASK] Doctrine: Migrate admin_get_fields() in Typo3DbBackend 60/49560/2
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 23 Aug 2016 16:18:28 +0000 (18:18 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 23 Aug 2016 18:08:45 +0000 (20:08 +0200)
Migrate the call to admin_get_fields() in Typo3DbBackend

Resolves: #77612
Releases: master
Change-Id: I447bf1de213145a08fd671d7fc743643b0b4d582
Reviewed-on: https://review.typo3.org/49560
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php

index 6d89958..26fe8e3 100644 (file)
@@ -660,7 +660,10 @@ class Typo3DbBackend implements BackendInterface, SingletonInterface
         }
         $pageIdsToClear = array();
         $storagePage = null;
-        $columns = $this->databaseHandle->admin_get_fields($tableName);
+        $columns = GeneralUtility::makeInstance(ConnectionPool::class)
+            ->getConnectionForTable($tableName)
+            ->getSchemaManager()
+            ->listTableColumns($tableName);
         if (array_key_exists('pid', $columns)) {
             $queryBuilder = $this->connectionPool->getQueryBuilderForTable($tableName);
             $queryBuilder->getRestrictions()->removeAll();