Fix: Dynamic property deprecation in Builder::aggregate() due to incompatible cloneWithout() call (#52)
This commit is contained in:
@@ -220,7 +220,7 @@ trait BuilderMethodsFromLaravel
|
||||
*/
|
||||
public function aggregate($function, $columns = ['*'])
|
||||
{
|
||||
$results = $this->cloneWithout($this->unions || $this->havings ? [] : ['columns'])
|
||||
$results = $this->cloneWithout($this->unions || $this->havings ? [] : ['columns' => []])
|
||||
->setAggregate($function, $columns)
|
||||
->getRows();
|
||||
|
||||
@@ -249,4 +249,4 @@ trait BuilderMethodsFromLaravel
|
||||
$table = $this->tableSources ?? (string)$this->getFrom()->getTable();
|
||||
$this->client->insertAssocBulk($table, $values);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user