Commit cfb31933 authored by Benni Mack's avatar Benni Mack Committed by Georg Ringer
Browse files

[TASK] Migrate Doctrine DBAL fetchAll() to fetchAllAssociative()

Since TYPO3 uses the \PDO::FETCH_ASSOC fetch mode
by default, fetchAll() is the equivalent for fetchAllAssociative()
which is the new API for Doctrine 3. In order to
move towards the new Doctrine DBAL 3.x API,
this change migrates all fetchAll() calls
to fetchAllAssociative() or fetchFirstColumn().

Resolves: #94618
Releases: master
Change-Id: I2ab4db871d0b65ad07e629b54bb79b1c3b411005
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70016

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 3748cafd
......@@ -400,7 +400,7 @@ class WorkspaceService implements SingletonInterface
->where(...$constraints)
->orderBy('B.uid')
->execute()
->fetchAll();
->fetchAllAssociative();
return $rows;
}
......@@ -521,7 +521,7 @@ class WorkspaceService implements SingletonInterface
->where(...$constraints)
->orderBy('uid')
->execute()
->fetchAll();
->fetchAllAssociative();
}
/**
......@@ -622,7 +622,7 @@ class WorkspaceService implements SingletonInterface
->where(...$constraints)
->orderBy('C.uid')
->execute()
->fetchAll();
->fetchAllAssociative();
return $rows;
}
......
Markdown is supported
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