From d6a07446bb8f55bd357e7bb3c92efe2bd1266348 Mon Sep 17 00:00:00 2001 From: whwyy Date: Tue, 30 Jun 2026 22:35:02 +0800 Subject: [PATCH] eee --- SqlBuilder.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/SqlBuilder.php b/SqlBuilder.php index abeffe2..9bc758b 100644 --- a/SqlBuilder.php +++ b/SqlBuilder.php @@ -75,12 +75,7 @@ class SqlBuilder extends Component */ public function update(array $attributes): bool|string { - $conditions = $this->query; - $data = $this->__updateBuilder($this->makeParams($attributes)); - foreach ($conditions as $condition) { - $this->query->pushParam($condition); - } - return $data; + return $this->__updateBuilder($this->makeParams($attributes)); }