Skip to content

Commit

Permalink
fix bug in eloquent model.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 27, 2012
1 parent ae5331b commit 02cb96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laravel/database/eloquent/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ public function get_dirty()
*/
public function get_key()
{
return array_get($this->original, static::$key);
return array_get($this->attributes, static::$key);
}

/**
Expand Down

0 comments on commit 02cb96a

Please sign in to comment.