From f15d3f2472db3dc06f0ed4d7f0d23edfde7baec7 Mon Sep 17 00:00:00 2001 From: David Maicher Date: Wed, 7 Oct 2020 15:32:07 +0200 Subject: [PATCH] fix issue with doctrine/dbal 2.11 and connection option --- Command/Proxy/RunSqlDoctrineCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Command/Proxy/RunSqlDoctrineCommand.php b/Command/Proxy/RunSqlDoctrineCommand.php index ff6c3b078..d784fcbdb 100644 --- a/Command/Proxy/RunSqlDoctrineCommand.php +++ b/Command/Proxy/RunSqlDoctrineCommand.php @@ -43,6 +43,10 @@ protected function execute(InputInterface $input, OutputInterface $output) { DoctrineCommandHelper::setApplicationConnection($this->getApplication(), $input->getOption('connection')); + // compatibility with doctrine/dbal 2.11+ + // where this option is also present and unsupported before we are not switching to use a ConnectionProvider + $input->setOption('connection', null); + return parent::execute($input, $output); } }