From 82147c0657d24292322390ece574b374a6eeda52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Tue, 2 Apr 2019 11:52:05 +0200 Subject: [PATCH] Quote column correctly in DoctrineDatabase --- .../Persistence/Legacy/Tags/Gateway/DoctrineDatabase.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bundle/Core/Persistence/Legacy/Tags/Gateway/DoctrineDatabase.php b/bundle/Core/Persistence/Legacy/Tags/Gateway/DoctrineDatabase.php index 7cefd73b..e5012648 100644 --- a/bundle/Core/Persistence/Legacy/Tags/Gateway/DoctrineDatabase.php +++ b/bundle/Core/Persistence/Legacy/Tags/Gateway/DoctrineDatabase.php @@ -337,7 +337,11 @@ function (array $row) { $tagIds ) ); - $query->orderBy('eztags_keyword.keyword', 'ASC'); + + $query->orderBy( + $this->handler->quoteColumn('keyword', 'eztags_keyword'), + $query::ASC + ); $statement = $query->prepare(); $statement->execute();