Skip to content

Commit

Permalink
Merge pull request #35 from Weebly/laravel8-upgrade
Browse files Browse the repository at this point in the history
Override new Model function getKeyForSelectQuery
  • Loading branch information
skozak-sq authored Jan 10, 2023
2 parents 4d76556 + 05d1f10 commit 7d53268
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Database/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,12 @@ protected function getKeyForSaveQuery()
{
return $this->getAttribute($this->getKeyName());
}

/**
* {@inheritdoc}
*/
protected function getKeyForSelectQuery()
{
return $this->getAttribute($this->getKeyName());
}
}

0 comments on commit 7d53268

Please sign in to comment.