Browse Source

fix bug in eloquent model.

Taylor Otwell 11 years ago
parent
commit
02cb96a008
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/database/eloquent/model.php

+ 1 - 1
laravel/database/eloquent/model.php

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