Skip to content

Commit

Permalink
Merge pull request #235 from rhertogh/patch-2
Browse files Browse the repository at this point in the history
Close DB after each model generation
  • Loading branch information
schmunk42 authored May 24, 2018
2 parents e4ceda3 + f6281c6 commit f5a1a47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/BatchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ public function actionModels()
$app = \Yii::$app;
$temp = new \yii\console\Application($this->appConfig);
$temp->runAction(ltrim($route, '/'), $params);
$temp->get($this->modelDb)->close();
unset($temp);
\Yii::$app = $app;
\Yii::$app->log->logger->flush(true);
Expand Down

0 comments on commit f5a1a47

Please sign in to comment.