Skip to content

Commit daaad0d

Browse files
committed
Check DB option befor proceeding to EM configuration
1 parent b21d0af commit daaad0d

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)