From b9dae95149a1d601c1c41321c951dee55303914b Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 6 Apr 2023 22:45:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connection.php b/Connection.php index 4520845..19e4c6f 100644 --- a/Connection.php +++ b/Connection.php @@ -258,7 +258,7 @@ class Connection extends Component */ public function createCommand($sql = null, array $attributes = []): Command { - $command = new Command(['db' => $this, 'sql' => $sql]); + $command = new Command(['connection' => $this, 'sql' => $sql]); return $command->bindValues($attributes); }