Skip to content
Snippets Groups Projects
Commit 8cb5c534 authored by Georg Ringer's avatar Georg Ringer Committed by Christian Kuhn
Browse files

[TASK] Doctrine: Migrate admin_get_fields() in Typo3DbBackend

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: default avatarBamboo TYPO3com <info@typo3.com>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 71561c12
Branches
Tags
No related merge requests found
......@@ -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();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment