Refactor the database query builder.

This commit is contained in:
Taylor Otwell 2011-08-08 10:57:37 -05:00
parent d2be60205b
commit 87a65c2032
1 changed files with 1 additions and 0 deletions

View File

@ -482,6 +482,7 @@ public function find($id, $columns = array('*'))
private function aggregate($aggregator, $column)
{
$this->select = 'SELECT '.$aggregator.'('.$this->wrap($column).') AS '.$this->wrap('aggregate');
return $this->first()->aggregate;
}