Updating $eloquent->dirty() method.

This commit is contained in:
Taylor Otwell
2012-03-22 09:18:11 -05:00
parent e5b3b196ab
commit 268e6e460d

View File

@@ -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;
}
/**