@@ -38,9 +38,9 @@ |
||
| 38 | 38 | $connection = $em->getConnection(); |
| 39 | 39 | |
| 40 | 40 | if ($connection instanceof MasterSlaveConnection) { |
| 41 | - $output->writeln('<info>switch to master</info>', OutputInterface::VERBOSITY_VERBOSE); |
|
| 42 | - $connection->connect('master'); |
|
| 43 | - } |
|
| 41 | + $output->writeln('<info>switch to master</info>', OutputInterface::VERBOSITY_VERBOSE); |
|
| 42 | + $connection->connect('master'); |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | 45 | $metadatas = $em->getMetadataFactory()->getAllMetadata(); |
| 46 | 46 | |