From 08e9211e0e078442cb142aed48b15da356f2047e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 14 Aug 2023 14:03:30 +0800 Subject: [PATCH] qqq --- Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model.php b/Model.php index 4ea6664..805fb7b 100644 --- a/Model.php +++ b/Model.php @@ -193,7 +193,7 @@ class Model extends Base\Model { if ($this->beforeDelete()) { if ($this->hasPrimary()) { - $result = static::deleteByCondition("id = :id", [":id" => $this->getPrimaryValue()]); + $result = static::deleteByCondition("id = ?", [$this->getPrimaryValue()]); } else { $result = static::deleteByCondition($this->_attributes); }