改名
This commit is contained in:
@@ -250,10 +250,7 @@ class Connection extends Component
|
|||||||
*/
|
*/
|
||||||
public function createCommand($sql = null, $attributes = [])
|
public function createCommand($sql = null, $attributes = [])
|
||||||
{
|
{
|
||||||
$command = new Command([
|
$command = new Command(['db' => $this, 'sql' => $sql]);
|
||||||
'db' => $this
|
|
||||||
]);
|
|
||||||
$command->setSql($sql);
|
|
||||||
return $command->bindValues($attributes);
|
return $command->bindValues($attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -112,7 +112,7 @@ class Db
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Connection $db
|
* @param Connection|null $db
|
||||||
* @return array|mixed
|
* @return array|mixed
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user