protected function getConnection() { $pdo = new PDO('sqlite::memory:'); $this->connection = DriverManager::getConnection(array('pdo' => $pdo)); DoctrineConfig::createTable($this->connection); return $this->createDefaultDBConnection($pdo, ':memory:'); }
protected function execute(InputInterface $input, OutputInterface $output) { $connection = $this->getConnection($input, $output); DoctrineConfig::createTable($connection, $input->getOption('table')); $output->writeln('<info>Success</info>'); }