diff --git a/changes.md b/changes.md index ec6ff4bd..761388b9 100644 --- a/changes.md +++ b/changes.md @@ -2,11 +2,23 @@ ## Contents +- [Laravel 3.1.2](#3.1.2) +- [Upgrading From 3.1.1](#upgrade-3.1.2) - [Laravel 3.1.1](#3.1.1) - [Upgrading From 3.1](#upgrade-3.1.1) - [Laravel 3.1](#3.1) - [Upgrading From 3.0](#upgrade-3.1) + +## Laravel 3.1.2 + +- Fixes Eloquent query method constructor conflict. + + +## Upgrade From 3.1.1 + +- Replace the **laravel** folder. + ## Laravel 3.1.1 diff --git a/laravel/database/eloquent/query.php b/laravel/database/eloquent/query.php index c4367e96..e30fe0e2 100644 --- a/laravel/database/eloquent/query.php +++ b/laravel/database/eloquent/query.php @@ -43,7 +43,7 @@ public function __construct($model) { $this->model = ($model instanceof Model) ? $model : new $model; - $this->table = $this->query(); + $this->table = $this->table(); } /** @@ -245,7 +245,7 @@ protected function model_includes() * * @return Query */ - protected function query() + protected function table() { return $this->connection()->table($this->model->table()); } diff --git a/laravel/database/eloquent/relationships/relationship.php b/laravel/database/eloquent/relationships/relationship.php index 84d02362..2ec10aa4 100644 --- a/laravel/database/eloquent/relationships/relationship.php +++ b/laravel/database/eloquent/relationships/relationship.php @@ -51,7 +51,7 @@ public function __construct($model, $associated, $foreign) // Next we'll set the fluent query builder for the relationship and // constrain the query such that it only returns the models that // are appropriate for the relationship. - $this->table = $this->query(); + $this->table = $this->table(); $this->constrain(); }