Commit 542477c3 by Qiang Xue

typo fix.

parent 6992cc2c
...@@ -116,7 +116,7 @@ class Generator extends \yii\gii\Generator ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment