Skip to content

Commit

Permalink
Fix of the death cycle problem
Browse files Browse the repository at this point in the history
  • Loading branch information
qiutuleng authored Jun 16, 2018
1 parent 0c577a7 commit b35b19a
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 b35b19a

Please sign in to comment.