mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 09:47:25 +08:00
typo fix.
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user