Skip to content

Commit

Permalink
Merge pull request #82 from yurykabanov/fix-get-all-records
Browse files Browse the repository at this point in the history
Fix issue with retrieving every single id to count them (fix #81)
  • Loading branch information
nilportugues committed Aug 2, 2016
2 parents 54267b1 + f943cac commit ea00a19
Showing 1 changed file with 1 addition and 1 deletion.
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 ea00a19

Please sign in to comment.