|
|
@ -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(); |
|
|
|