diff options
author | Joas Schilling <coding@schilljs.com> | 2018-10-19 17:44:28 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-11-08 17:44:45 +0300 |
commit | bb352fb667e87ea0829f1da5f9e85c34bdefe9fa (patch) | |
tree | cd243856dcfec5708528418b55269e3d7feed53a /lib/private/SystemTag | |
parent | 78fd8ab0fd362fd5d568dfc5b47a02158e62d51c (diff) |
Use the defined func()->count() instead of manual counting
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/SystemTag')
-rw-r--r-- | lib/private/SystemTag/SystemTagObjectMapper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/SystemTag/SystemTagObjectMapper.php b/lib/private/SystemTag/SystemTagObjectMapper.php index 8ecc46b4357..f8a1b03cd01 100644 --- a/lib/private/SystemTag/SystemTagObjectMapper.php +++ b/lib/private/SystemTag/SystemTagObjectMapper.php @@ -217,7 +217,7 @@ class SystemTagObjectMapper implements ISystemTagObjectMapper { $query->select('*') ->setMaxResults(1); } else { - $query->select($query->createFunction('COUNT(1)')); + $query->select($query->func()->count($query->expr()->literal(1))); } $query->from(self::RELATION_TABLE) |