From 70dd657e80fefb9c2716c108a46985e50989c8f4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 24 Jan 2012 13:36:22 -0600 Subject: [PATCH] make aggregate method public. --- laravel/database/query.php | 2 +- laravel/database/schema.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/database/query.php b/laravel/database/query.php index fabeb4dd..6c7dbcdb 100644 --- a/laravel/database/query.php +++ b/laravel/database/query.php @@ -629,7 +629,7 @@ public function get($columns = array('*')) * @param string $column * @return mixed */ - private function aggregate($aggregator, $column) + public function aggregate($aggregator, $column) { $this->aggregate = compact('aggregator', 'column'); diff --git a/laravel/database/schema.php b/laravel/database/schema.php index 0c3ecef8..d36df3ef 100644 --- a/laravel/database/schema.php +++ b/laravel/database/schema.php @@ -78,7 +78,7 @@ protected static function implications($table) // For some extra syntax sugar, we'll check for any implicit // indexes on the table. The developer may specify the index // 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 (array('primary', 'unique', 'fulltext', 'index') as $key)