lib/Doctrine/ODM/MongoDB/Tools/Console/Command/Schema/ShardCommand.php 1 location
|
@@ 51-57 (lines=7) @@
|
48 |
|
$isErrored = false; |
49 |
|
|
50 |
|
try { |
51 |
|
if (isset($class)) { |
52 |
|
$this->processDocumentIndex($sm, $class); |
53 |
|
$output->writeln(sprintf('Enabled sharding for <info>%s</info>', $class)); |
54 |
|
} else { |
55 |
|
$this->processIndex($sm); |
56 |
|
$output->writeln('Enabled sharding for <info>all classes</info>'); |
57 |
|
} |
58 |
|
} catch (\Exception $e) { |
59 |
|
$output->writeln('<error>' . $e->getMessage() . '</error>'); |
60 |
|
$isErrored = true; |
lib/Doctrine/ODM/MongoDB/Tools/Console/Command/Schema/UpdateCommand.php 1 location
|
@@ 57-63 (lines=7) @@
|
54 |
|
$isErrored = false; |
55 |
|
|
56 |
|
try { |
57 |
|
if (isset($class)) { |
58 |
|
$this->processDocumentIndex($sm, $class); |
59 |
|
$output->writeln(sprintf('Updated <comment>index(es)</comment> for <info>%s</info>', $class)); |
60 |
|
} else { |
61 |
|
$this->processIndex($sm); |
62 |
|
$output->writeln('Updated <comment>indexes</comment> for <info>all classes</info>'); |
63 |
|
} |
64 |
|
} catch (\Exception $e) { |
65 |
|
$output->writeln('<error>' . $e->getMessage() . '</error>'); |
66 |
|
$isErrored = true; |