Author: Fabien Potencier (fabien.potencier@symfony-project.com)
Inheritance: extends Symfony\Bundle\FrameworkBundle\Command\Command
 public function testSetApplicationConnection()
 {
     $kernel = $this->createKernelMock('test');
     $application = new Application($kernel);
     DoctrineCommand::setApplicationConnection($application, 'test');
     $this->assertFalse($application->getHelperSet()->has('em'));
     $this->assertTrue($application->getHelperSet()->has('db'));
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     DoctrineCommand::setApplicationEntityManager($this->application, $input->getOption('em'));
     parent::execute($input, $output);
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     DoctrineCommand::setApplicationConnection($this->application, $input->getOption('connection'));
     return parent::execute($input, $output);
 }