From 56ecbd6a9489a69f4fd438d0e074ebc9312d2b38 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Tue, 4 Jun 2019 08:29:59 +0200 Subject: [PATCH] Fix usage of wrong option in previously delegated commands Fixes an issue reported in #976, previously introduced in #892. --- Command/Proxy/CollectionRegionDoctrineCommand.php | 2 +- Command/Proxy/EntityRegionCacheDoctrineCommand.php | 2 +- Command/Proxy/QueryRegionCacheDoctrineCommand.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Command/Proxy/CollectionRegionDoctrineCommand.php b/Command/Proxy/CollectionRegionDoctrineCommand.php index d12614537..c5df01599 100644 --- a/Command/Proxy/CollectionRegionDoctrineCommand.php +++ b/Command/Proxy/CollectionRegionDoctrineCommand.php @@ -26,7 +26,7 @@ protected function configure() protected function execute(InputInterface $input, OutputInterface $output) { - DoctrineCommandHelper::setApplicationConnection($this->getApplication(), $input->getOption('connection')); + DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em')); return parent::execute($input, $output); } diff --git a/Command/Proxy/EntityRegionCacheDoctrineCommand.php b/Command/Proxy/EntityRegionCacheDoctrineCommand.php index 4b2d40d56..55ea3b86f 100644 --- a/Command/Proxy/EntityRegionCacheDoctrineCommand.php +++ b/Command/Proxy/EntityRegionCacheDoctrineCommand.php @@ -26,7 +26,7 @@ protected function configure() protected function execute(InputInterface $input, OutputInterface $output) { - DoctrineCommandHelper::setApplicationConnection($this->getApplication(), $input->getOption('connection')); + DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em')); return parent::execute($input, $output); } diff --git a/Command/Proxy/QueryRegionCacheDoctrineCommand.php b/Command/Proxy/QueryRegionCacheDoctrineCommand.php index 084841b90..b7b761bb7 100644 --- a/Command/Proxy/QueryRegionCacheDoctrineCommand.php +++ b/Command/Proxy/QueryRegionCacheDoctrineCommand.php @@ -26,7 +26,7 @@ protected function configure() protected function execute(InputInterface $input, OutputInterface $output) { - DoctrineCommandHelper::setApplicationConnection($this->getApplication(), $input->getOption('connection')); + DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em')); return parent::execute($input, $output); }