Commit 3bc70ac1 by Carsten Brandt

do not throw exception if db component is not set

without this the form does not allow choosing a different connection id
parent cd4b3f78
......@@ -575,7 +575,7 @@ class Generator extends \yii\gii\Generator
*/
protected function getDbConnection()
{
return Yii::$app->{$this->db};
return Yii::$app->get($this->db, false);
}
/**
......
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