public function execute(InputInterface $input, OutputInterface $output)
 {
     DoctrineCommand::setApplicationEntityManager($this->application, $input->getOption('em'));
     $configuration = $this->getMigrationConfiguration($input, $output);
     DoctrineCommand::configureMigrations($this->application->getKernel()->getContainer(), $configuration);
     parent::execute($input, $output);
 }
 public function execute(InputInterface $input, OutputInterface $output)
 {
     /** @var \Pimple\Container $container */
     $container = $this->getHelper('pimple')->getContainer();
     $this->setApplicationEntityManager($container, $this->getApplication(), $input->getOption('em'));
     $configuration = $this->getMigrationConfiguration($input, $output);
     $this->configureMigrations($container, $configuration);
     parent::execute($input, $output);
 }
 public function execute(InputInterface $input, OutputInterface $output)
 {
     // EM and DB options cannot be set at same time
     if (null !== $input->getOption('em') && null !== $input->getOption('db')) {
         throw new \InvalidArgumentException('Cannot set both "em" and "db" for command execution.');
     }
     Helper\DoctrineCommandHelper::setApplicationHelper($this->getApplication(), $input);
     $configuration = $this->getMigrationConfiguration($input, $output);
     DoctrineCommand::configureMigrations($this->getApplication()->getKernel()->getContainer(), $configuration);
     parent::execute($input, $output);
 }
 public function execute(InputInterface $input, OutputInterface $output)
 {
     /** @var \Symfony\Bundle\FrameworkBundle\Console\Application $app */
     $app = $this->getApplication();
     /** @var ContainerInterface $container */
     $container = $app->getKernel()->getContainer();
     $this->setMigrationConfiguration($this->getBasicConfiguration($container, $output));
     $configuration = $this->getMigrationConfiguration($input, $output);
     $this->configureMigrations($container, $configuration);
     parent::execute($input, $output);
 }
 public function execute(InputInterface $input, OutputInterface $output)
 {
     DoctrineCommand::setApplicationEntityManager($this->application, $input->getOption('em'));
     parent::execute($input, $output);
 }