setName('doctrine:database:import') ->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command'); } /** * {@inheritDoc} */ protected function execute(InputInterface $input, OutputInterface $output) { DoctrineCommandHelper::setApplicationConnection($this->getApplication(), $input->getOption('connection')); return parent::execute($input, $output); } }