mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 17:57:38 +08:00
typo fix.
This commit is contained in:
@ -116,7 +116,7 @@ class Generator extends \yii\gii\Generator
|
|||||||
public function autoCompleteData()
|
public function autoCompleteData()
|
||||||
{
|
{
|
||||||
$db = $this->getDbConnection();
|
$db = $this->getDbConnection();
|
||||||
if ($db === null) {
|
if ($db !== null) {
|
||||||
return [
|
return [
|
||||||
'tableName' => function () use ($db) {
|
'tableName' => function () use ($db) {
|
||||||
return $db->getSchema()->getTableNames();
|
return $db->getSchema()->getTableNames();
|
||||||
|
|||||||
Reference in New Issue
Block a user