Updating $eloquent->dirty() method.

This commit is contained in:
Taylor Otwell 2012-03-22 09:18:11 -05:00
parent e5b3b196ab
commit 268e6e460d
1 changed files with 1 additions and 1 deletions

View File

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