diff --git a/SqlBuilder.php b/SqlBuilder.php index 5bc49fc..592013c 100644 --- a/SqlBuilder.php +++ b/SqlBuilder.php @@ -78,7 +78,7 @@ class SqlBuilder extends Component $params = $this->query->params; $this->query->params = []; $array = $this->makeParams($attributes); - foreach ($array as $name => $value) { + foreach ($params as $name => $value) { $this->query->pushParam($value); } return $this->__updateBuilder($array);