From 02cb96a00842a082d240b34101d5c5ddbd97e02b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 27 Sep 2012 17:44:03 -0400 Subject: [PATCH] fix bug in eloquent model. --- laravel/database/eloquent/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/database/eloquent/model.php b/laravel/database/eloquent/model.php index bdcf6daf..8ae74f6b 100644 --- a/laravel/database/eloquent/model.php +++ b/laravel/database/eloquent/model.php @@ -544,7 +544,7 @@ abstract class Model { */ public function get_key() { - return array_get($this->original, static::$key); + return array_get($this->attributes, static::$key); } /**