make aggregate method public.
This commit is contained in:
parent
c6e814a6cc
commit
70dd657e80
|
@ -629,7 +629,7 @@ public function get($columns = array('*'))
|
||||||
* @param string $column
|
* @param string $column
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
private function aggregate($aggregator, $column)
|
public function aggregate($aggregator, $column)
|
||||||
{
|
{
|
||||||
$this->aggregate = compact('aggregator', 'column');
|
$this->aggregate = compact('aggregator', 'column');
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ protected static function implications($table)
|
||||||
// For some extra syntax sugar, we'll check for any implicit
|
// For some extra syntax sugar, we'll check for any implicit
|
||||||
// indexes on the table. The developer may specify the index
|
// indexes on the table. The developer may specify the index
|
||||||
// type on the fluent column declaration. Here we'll find
|
// type on the fluent column declaration. Here we'll find
|
||||||
// any such implicit index and add the actual command.
|
// any implicit indexes and add the commands.
|
||||||
foreach ($table->columns as $column)
|
foreach ($table->columns as $column)
|
||||||
{
|
{
|
||||||
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
|
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
|
||||||
|
|
Loading…
Reference in New Issue