This commit is contained in:
2026-07-06 21:04:28 +08:00
parent 39905b77e3
commit ade6e48f0b
+2 -3
View File
@@ -78,6 +78,7 @@ class SqlBuilder extends Component
$params = $this->query->params; $params = $this->query->params;
$this->query->params = []; $this->query->params = [];
$array = $this->makeParams($attributes); $array = $this->makeParams($attributes);
var_dump($params, $array);
foreach ($params as $name => $value) { foreach ($params as $name => $value) {
$this->query->pushParam($value); $this->query->pushParam($value);
} }
@@ -146,9 +147,7 @@ class SqlBuilder extends Component
*/ */
public function delete(): string public function delete(): string
{ {
return 'DELETE FROM ' . return 'DELETE FROM ' . $this->getFromAlias() . ' ' . $this->make();
$this->getFromAlias() . ' ' .
$this->make();
} }