We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0779c00 commit 723052cCopy full SHA for 723052c
src/TgDatabase/Criterion/QueryImpl.php
@@ -206,6 +206,8 @@ public function list($throwException = FALSE) {
206
*/
207
public function count($throwException = FALSE) {
208
$query = $this->clone()->select(Projections::alias(Projections::rowCount(), 'cnt'))->setResultClass(NULL);
209
+ // Remove all ORDER clauses
210
+ $query->orders = array();
211
$record = $query->first();
212
if ($query->hasError()) {
213
if ($throwException) {
0 commit comments