From 3b5af93064eded6eb88c03d3a2e5ec10a13e9967 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 11 Aug 2011 13:54:48 -0500 Subject: [PATCH] Return the Eloquent model instance in the fill method. --- system/db/eloquent/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/db/eloquent/model.php b/system/db/eloquent/model.php index 8e8c9fb8..0b0a2046 100644 --- a/system/db/eloquent/model.php +++ b/system/db/eloquent/model.php @@ -100,7 +100,7 @@ abstract class Model { * Set the attributes of the model using an array. * * @param array $attributes - * @return void + * @return Model */ public function fill($attributes) { @@ -108,6 +108,8 @@ abstract class Model { { $this->$key = $value; } + + return $this; } /**