Skip to content

Commit 7525981

Browse files
committed
Merge pull request #164 from bankiru/bugfix/check-db-option
Check DB option before proceeding to EM configuration
2 parents b21d0af + daaad0d commit 7525981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/Helper/DoctrineCommandHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function setApplicationHelper(Application $application, InputInter
3333
$doctrine = $container->get('doctrine');
3434
$managerNames = $doctrine->getManagerNames();
3535

36-
if (empty($managerNames)) {
36+
if ($input->getOption('db') || empty($managerNames)) {
3737
self::setApplicationConnection($application, $input->getOption('db'));
3838
} else {
3939
self::setApplicationEntityManager($application, $input->getOption('em'));

0 commit comments

Comments
 (0)