diff --git a/extensions/gii/generators/model/Generator.php b/extensions/gii/generators/model/Generator.php index ea43f6b..cd2fcbf 100644 --- a/extensions/gii/generators/model/Generator.php +++ b/extensions/gii/generators/model/Generator.php @@ -116,7 +116,7 @@ class Generator extends \yii\gii\Generator public function autoCompleteData() { $db = $this->getDbConnection(); - if ($db === null) { + if ($db !== null) { return [ 'tableName' => function () use ($db) { return $db->getSchema()->getTableNames();