From bc1550ab20c1a94085a3c8f4ba0735a1e18d4aa2 Mon Sep 17 00:00:00 2001 From: Thomas Steindl <54796109+Wondarar@users.noreply.github.com> Date: Sat, 4 Dec 2021 19:40:02 +0100 Subject: [PATCH] changed deprecated methods these methods will be deprecated by 2022 --- src/FrontPage/Infrastructure/DbalSubmissionsQuery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FrontPage/Infrastructure/DbalSubmissionsQuery.php b/src/FrontPage/Infrastructure/DbalSubmissionsQuery.php index 60809c1..f8b3003 100644 --- a/src/FrontPage/Infrastructure/DbalSubmissionsQuery.php +++ b/src/FrontPage/Infrastructure/DbalSubmissionsQuery.php @@ -32,8 +32,8 @@ public function execute(): array ); $qb->orderBy('submissions.creation_date', 'DESC'); - $stmt = $qb->execute(); - $rows = $stmt->fetchAll(); + $stmt = $qb->executeQuery(); + $rows = $stmt->fetchAllAssociative(); $submissions = []; foreach ($rows as $row) { @@ -41,4 +41,4 @@ public function execute(): array } return $submissions; } -} \ No newline at end of file +}