fix bug in eloquent model.

This commit is contained in:
Taylor Otwell
2012-09-27 17:44:03 -04:00
parent ae5331b312
commit 02cb96a008

View File

@@ -544,7 +544,7 @@ abstract class Model {
*/
public function get_key()
{
return array_get($this->original, static::$key);
return array_get($this->attributes, static::$key);
}
/**