This commit is contained in:
2026-06-30 22:35:02 +08:00
parent 6c936c3896
commit d6a07446bb
+1 -6
View File
@@ -75,12 +75,7 @@ class SqlBuilder extends Component
*/ */
public function update(array $attributes): bool|string public function update(array $attributes): bool|string
{ {
$conditions = $this->query; return $this->__updateBuilder($this->makeParams($attributes));
$data = $this->__updateBuilder($this->makeParams($attributes));
foreach ($conditions as $condition) {
$this->query->pushParam($condition);
}
return $data;
} }