Skip to content
Snippets Groups Projects
Commit 1a03961c authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Port back to fetch/fetchAll usage

parent e0d6be4b
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ class BackendService {
->from('pages')
->where(
$queryBuilder->expr()->eq('is_siteroot', $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT))
)->execute()->fetchAllAssociative();
)->execute()->fetchAll();
foreach ($rows as $row) {
$pageInfo = BackendUtility::readPageAccess($row['uid'], $GLOBALS['BE_USER']->getPagePermsClause(1));
......@@ -129,7 +129,7 @@ class BackendService {
$rows = $queryBuilder->select('pid')
->from('tx_sgjobs_domain_model_job')
->groupBy('pid')
->execute()->fetchAllAssociative();
->execute()->fetchAll();
foreach ($rows as $row) {
$pageInfo = BackendUtility::readPageAccess($row['pid'], $GLOBALS['BE_USER']->getPagePermsClause(1));
if ($pageInfo) {
......
......@@ -60,7 +60,7 @@ class SitemapService {
->execute();
$context = GeneralUtility::makeInstance(Context::class);
while ($row = $databaseResource->fetchAssociative()) {
while ($row = $databaseResource->fetch()) {
try {
$site = GeneralUtility::makeInstance(SiteFinder::class)->getSiteByPageId($row['pid']);
if ($rootPageId > 0 && $site->getRootPageId() !== $rootPageId) {
......@@ -111,7 +111,7 @@ class SitemapService {
->execute();
$visibleRows = [];
$rows = $databaseResource->fetchAllAssociative();
$rows = $databaseResource->fetchAll();
$pageRepository = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Domain\Repository\PageRepository::class);
$isLanguageVisibilityLoaded = ExtensionManagementUtility::isLoaded('languagevisibility');
$languageAspect = GeneralUtility::makeInstance(Context::class)->getAspect('language');
......
......@@ -118,7 +118,7 @@ class DepartmentUpdateWizard implements UpgradeWizardInterface {
$jobs = $queryBuilder->select('uid', 'pid', 'sys_language_uid', $field)
->from('tx_sgjobs_domain_model_job')
->execute()
->fetchAllAssociative();
->fetchAll();
$newDepartments = [];
if (\count($jobs) > 0) {
......@@ -149,7 +149,7 @@ class DepartmentUpdateWizard implements UpgradeWizardInterface {
$departments = $queryBuilder->select('uid', 'pid', 'sys_language_uid', 'title')
->from('tx_sgjobs_domain_model_department')
->execute()
->fetchAllAssociative();
->fetchAll();
$identifiedDepartments = [];
foreach ($departments as $department) {
......
......@@ -58,7 +58,7 @@ class CompanyLabelViewHelper extends AbstractViewHelper {
)
->setMaxResults(1)
->execute()
->fetchAssociative();
->fetch();
return $firstJob ? $firstJob['name'] . ', ' . $firstJob['city'] : '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment