Don't count objects if pagination is disabled
This commit is contained in:
parent
4908e3d860
commit
42b4525a15
|
@ -85,7 +85,9 @@ class ArangoProvider extends yii\data\ActiveDataProvider
|
|||
}
|
||||
$result[$item['_key']] = $item;
|
||||
}
|
||||
if (is_object($pagination)) {
|
||||
$pagination->totalCount = $cursor->getFullCount();
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue