From 542477c3231c4430f3bcc110a4005599b15c3c8f Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 15 Nov 2013 09:18:30 -0500 Subject: [PATCH] typo fix. --- extensions/gii/generators/model/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();