[TASK] Doctrine: Migrate two admin_get_fields()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / ProcessedFileRepository.php
index 13b22ab..334c07f 100644 (file)
@@ -284,7 +284,11 @@ class ProcessedFileRepository extends AbstractRepository
      */
     protected function cleanUnavailableColumns(array $data)
     {
-        return array_intersect_key($data, $this->databaseConnection->admin_get_fields($this->table));
+        $tableColumns = GeneralUtility::makeInstance(ConnectionPool::class)
+            ->getConnectionForTable($this->table)
+            ->getSchemaManager()
+            ->listTableColumns($this->table);
+        return array_intersect_key($data, $tableColumns);
     }
 
     /**