diff --git a/Command/TableDropCommand.php b/Command/TableDropCommand.php index 76354c7..c560d80 100644 --- a/Command/TableDropCommand.php +++ b/Command/TableDropCommand.php @@ -48,7 +48,7 @@ EOT protected function execute(InputInterface $input, OutputInterface $output) { $tablesToDelete = $input->getArgument('table'); - + if ($input->getOption('force')) { $nbTable = count($tablesToDelete); @@ -69,7 +69,8 @@ EOT try { - $connection = $this->getContainer()->get('propel.connection'); + list($name, $config) = $this->getConnection($input, $output); + $connection = \Propel::getConnection($name); $showStatement = $connection->prepare('SHOW TABLES;'); $showStatement->execute();