Merge pull request #1276 from rk/rk-issue-1261
[#1261] get_key now pulls from $original instead
This commit is contained in:
@@ -544,7 +544,7 @@ abstract class Model {
|
||||
*/
|
||||
public function get_key()
|
||||
{
|
||||
return $this->get_attribute(static::$key);
|
||||
return array_get($this->original, static::$key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user