From 268e6e460d1934f5b3f78d5c7ddd9738300acc66 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 22 Mar 2012 09:18:11 -0500 Subject: [PATCH] Updating $eloquent->dirty() method. --- 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 4fae10a1..45c8c3ca 100644 --- a/laravel/database/eloquent/model.php +++ b/laravel/database/eloquent/model.php @@ -416,7 +416,7 @@ public function changed($attribute) */ public function dirty() { - return ! $this->exists or $this->original !== $this->attributes; + return ! $this->exists or count($this->get_dirty()) > 0; } /**