Skip to content

Commit

Permalink
Fix usage of wrong option in previously delegated commands
Browse files Browse the repository at this point in the history
Fixes an issue reported in doctrine#976, previously introduced in doctrine#892.
  • Loading branch information
alcaeus committed Jun 4, 2019
1 parent 09a3841 commit 56ecbd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Command/Proxy/CollectionRegionDoctrineCommand.php
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Command/Proxy/EntityRegionCacheDoctrineCommand.php
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Command/Proxy/QueryRegionCacheDoctrineCommand.php
Expand Up @@ -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);
}
Expand Down

0 comments on commit 56ecbd6

Please sign in to comment.