Skip to content

Commit

Permalink
Merge pull request #39 from qiutuleng/1.7
Browse files Browse the repository at this point in the history
Fix of the death cycle problem
  • Loading branch information
libern authored Jun 16, 2018
2 parents 0c577a7 + b35b19a commit 9bd0c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Someline/Base/Models/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function api_auth()
*/
public function getIdAttribute()
{
return $this->getKey();
return $this->getAttributeFromArray($this->getKeyName());
}

/**
Expand Down Expand Up @@ -279,4 +279,4 @@ protected function serializeDate(\DateTimeInterface $date)
return $date->format($this->getDateFormat());
}

}
}

0 comments on commit 9bd0c59

Please sign in to comment.