Skip to content

Commit

Permalink
Fix issue with retrieving every single id to count them (fix #81)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurykabanov committed Jul 31, 2016
1 parent 54267b1 commit f943cac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function totalAmountResourceCallable()
return function () {
$idKey = $this->getDataModel()->getKeyName();

return $this->getDataModel()->query()->get([$idKey])->count();
return $this->getDataModel()->query()->count([$idKey]);
};
}

Expand Down

0 comments on commit f943cac

Please sign in to comment.