From 57dd2b7b1cb811739a484fb243c5cbdf33f80962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 17 Dec 2020 14:19:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Base/BaseActiveRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 8d4caf96..7d4df0b4 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -180,10 +180,10 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess } /** - * @return null|string + * @return int|null * @throws Exception */ - public function getPrimaryValue(): ?string + public function getPrimaryValue(): ?int { if (!$this->hasPrimary()) { return null;