From 0347aaccb8cc9c3f8d5f020eee82a92c4d035d44 Mon Sep 17 00:00:00 2001 From: William DURAND Date: Sat, 30 Jul 2011 19:17:12 +0200 Subject: [PATCH] Reverted commit 6785589a0ccfe6ef31c709de7ade89cc7c96ae06 according to the previous revert --- Command/TableDropCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();