Commit 87a65c20 authored by Taylor Otwell's avatar Taylor Otwell

Refactor the database query builder.

parent d2be6020
......@@ -482,6 +482,7 @@ class Query {
private function aggregate($aggregator, $column)
{
$this->select = 'SELECT '.$aggregator.'('.$this->wrap($column).') AS '.$this->wrap('aggregate');
return $this->first()->aggregate;
}
......
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