[TASK] Doctrine: exec_UPDATEquery in Tool/CleanUp 83/49283/2
authorTobias Adolph <mail@tobiasadolph.de>
Mon, 1 Aug 2016 12:39:03 +0000 (14:39 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 1 Aug 2016 15:40:21 +0000 (17:40 +0200)
Resolves: #77327
Releases: master
Change-Id: Ifd6329827a5d07731102b2f7b01b3537b12ba9e2
Reviewed-on: https://review.typo3.org/49283
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/install/Classes/Controller/Action/Tool/CleanUp.php

index 9bbd561..e723a02 100644 (file)
@@ -172,8 +172,11 @@ class CleanUp extends Action\AbstractAction
      */
     protected function resetBackendUserUc()
     {
-        $database = $this->getDatabaseConnection();
-        $database->exec_UPDATEquery('be_users', '', array('uc' => ''));
+        $connection = GeneralUtility::makeInstance(ConnectionPool::class)
+            ->getQueryBuilderForTable('be_users')
+            ->update('be_users')
+            ->set('uc', '')
+            ->execute();
         /** @var OkStatus $message */
         $message = GeneralUtility::makeInstance(OkStatus::class);
         $message->setTitle('Reset all backend users preferences');