Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RunSqlDoctrineCommand is not compatible with doctrine/dbal 2.11.x #1168

Closed
jdecool opened this issue May 20, 2020 · 1 comment
Closed

RunSqlDoctrineCommand is not compatible with doctrine/dbal 2.11.x #1168

jdecool opened this issue May 20, 2020 · 1 comment
Labels
Milestone

Comments

@jdecool
Copy link
Contributor

jdecool commented May 20, 2020

The RunSqlDoctrineCommand of doctrine/dbal was updated in 2.11.x branch.

A connection option has been had in the command. But the RunSqlDoctrineCommand of the bundle that extends the base class also add the option which throw an exception because an option cannot be added twice.

Below the output stack trace:

In InputDefinition.php line 232:

  [Symfony\Component\Console\Exception\LogicException]
  An option named "connection" already exists.


Exception trace:
  at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Input/InputDefinition.php:232
 Symfony\Component\Console\Input\InputDefinition->addOption() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Command/Command.php:401
 Symfony\Component\Console\Command\Command->addOption() at /home/jdecool/Workspace/experimental/evolution/vendor/doctrine/doctrine-bundle/Command/Proxy/RunSqlDoctrineCommand.php:24
 Doctrine\Bundle\DoctrineBundle\Command\Proxy\RunSqlDoctrineCommand->configure() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Command/Command.php:80
 Symfony\Component\Console\Command\Command->__construct() at /home/jdecool/Workspace/experimental/evolution/vendor/doctrine/dbal/lib/Doctrine/DBAL/Tools/Console/Command/RunSqlCommand.php:34
 Doctrine\DBAL\Tools\Console\Command\RunSqlCommand->__construct() at /home/jdecool/Workspace/experimental/evolution/var/cache/dev/ContainerXt3BJd2/getDoctrine_QuerySqlCommandService.php:24
 ContainerXt3BJd2\getDoctrine_QuerySqlCommandService::do() at /home/jdecool/Workspace/experimental/evolution/var/cache/dev/ContainerXt3BJd2/App_KernelDevDebugContainer.php:161
 ContainerXt3BJd2\App_KernelDevDebugContainer->load() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/dependency-injection/Container.php:441
 Symfony\Component\DependencyInjection\Container->getService() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/dependency-injection/Argument/ServiceLocator.php:40
 Symfony\Component\DependencyInjection\Argument\ServiceLocator->get() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php:45
 Symfony\Component\Console\CommandLoader\ContainerCommandLoader->get() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Application.php:520
 Symfony\Component\Console\Application->has() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Application.php:716
 Symfony\Component\Console\Application->all() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/framework-bundle/Console/Application.php:142
 Symfony\Bundle\FrameworkBundle\Console\Application->all() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Descriptor/ApplicationDescription.php:91
 Symfony\Component\Console\Descriptor\ApplicationDescription->inspectApplication() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Descriptor/ApplicationDescription.php:68
 Symfony\Component\Console\Descriptor\ApplicationDescription->getCommands() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Descriptor/TextDescriptor.php:202
 Symfony\Component\Console\Descriptor\TextDescriptor->describeApplication() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Descriptor/Descriptor.php:55
 Symfony\Component\Console\Descriptor\Descriptor->describe() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Helper/DescriptorHelper.php:65
 Symfony\Component\Console\Helper\DescriptorHelper->describe() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Command/ListCommand.php:75
 Symfony\Component\Console\Command\ListCommand->execute() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Command/Command.php:258
 Symfony\Component\Console\Command\Command->run() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Application.php:929
 Symfony\Component\Console\Application->doRunCommand() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/framework-bundle/Console/Application.php:99
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Application.php:264
 Symfony\Component\Console\Application->doRun() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/framework-bundle/Console/Application.php:82
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/jdecool/Workspace/experimental/evolution/vendor/symfony/console/Application.php:140
 Symfony\Component\Console\Application->run() at /home/jdecool/Workspace/experimental/evolution/bin/console:43
@ostrolucky
Copy link
Member

Fixed in #1170. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants