This commit is contained in:
2023-04-06 22:45:34 +08:00
parent fe1711325b
commit b9dae95149
+1 -1
View File
@@ -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);
}