Browse Source

typo fix.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
542477c323
  1. 2
      extensions/gii/generators/model/Generator.php

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

Loading…
Cancel
Save