Browse Source

Updating $eloquent->dirty() method.

Taylor Otwell 12 years ago
parent
commit
268e6e460d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/database/eloquent/model.php

+ 1 - 1
laravel/database/eloquent/model.php

@@ -416,7 +416,7 @@ abstract class Model {
 	 */
 	public function dirty()
 	{
-		return ! $this->exists or $this->original !== $this->attributes;
+		return ! $this->exists or count($this->get_dirty()) > 0;
 	}
 
 	/**