From ceefff70b791229b1590a2da27bd325efd3e9a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Feb 2021 19:01:07 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 85ff1a72..360eab8d 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -502,7 +502,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess static::getDb()->enablingTransactions(); [$attributes, $condition, $param] = $this->filtration_and_separation(); if (($primary = $this->getPrimary()) !== null) { - $condition = [$primary => $this->getPrimaryValue()]; + $condition = [[$primary => $this->getPrimaryValue()]]; } if (!$this->isNewExample) {