Properly use order by doctrine api (#7)

This commit is contained in:
Daniel Siepmann 2020-02-26 23:14:04 +01:00 committed by GitHub
parent 17cbbe288e
commit b19eb00329
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ class NewestPageviewsList extends AbstractListWidget
$this->queryBuilder
->select('*')
->from('tx_tracking_pageview')
->orderBy('crdate desc')
->orderBy('crdate', 'desc')
->setMaxResults($this->settings['maxResults']);
if ($constraints !== []) {