Refactor the database query builder.
This commit is contained in:
parent
d2be60205b
commit
87a65c2032
|
@ -482,6 +482,7 @@ public function find($id, $columns = array('*'))
|
||||||
private function aggregate($aggregator, $column)
|
private function aggregate($aggregator, $column)
|
||||||
{
|
{
|
||||||
$this->select = 'SELECT '.$aggregator.'('.$this->wrap($column).') AS '.$this->wrap('aggregate');
|
$this->select = 'SELECT '.$aggregator.'('.$this->wrap($column).') AS '.$this->wrap('aggregate');
|
||||||
|
|
||||||
return $this->first()->aggregate;
|
return $this->first()->aggregate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue