Commit 82757887 authored by josemiguelq's avatar josemiguelq

typo

parent ce786e62
...@@ -272,7 +272,7 @@ class Builder extends BaseBuilder ...@@ -272,7 +272,7 @@ class Builder extends BaseBuilder
// Null coalense only > 7.2 // Null coalense only > 7.2
$aggregations = blank($this->aggregate['collumns']) ? [] : $this->aggregate['collumns']; $aggregations = blank($this->aggregate['columns']) ? [] : $this->aggregate['columns'];
if (in_array('*', $aggregations) && $function == 'count') { if (in_array('*', $aggregations) && $function == 'count') {
// When ORM is paginating, count doesnt need a aggregation, just a cursor operation // When ORM is paginating, count doesnt need a aggregation, just a cursor operation
...@@ -284,8 +284,8 @@ class Builder extends BaseBuilder ...@@ -284,8 +284,8 @@ class Builder extends BaseBuilder
// Preserving format expected by framework // Preserving format expected by framework
$results = [ $results = [
[ [
"_id" => null, '_id' => null,
"aggregate" => $totalResults 'aggregate' => $totalResults
] ]
]; ];
return $this->useCollections ? new Collection($results) : $results; return $this->useCollections ? new Collection($results) : $results;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment