From 05d1f102e7f67fc4c24bc6c1cb326d2b72911ae6 Mon Sep 17 00:00:00 2001 From: Sean Kozak Date: Mon, 9 Jan 2023 16:14:34 -0600 Subject: [PATCH] ovverride new Model function getKeyForSelectQuery that's used for Model::fresh() and refresh() --- src/Database/Model.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Database/Model.php b/src/Database/Model.php index d896a4e..cc93e6f 100644 --- a/src/Database/Model.php +++ b/src/Database/Model.php @@ -114,4 +114,12 @@ protected function getKeyForSaveQuery() { return $this->getAttribute($this->getKeyName()); } + + /** + * {@inheritdoc} + */ + protected function getKeyForSelectQuery() + { + return $this->getAttribute($this->getKeyName()); + } }