We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0edf04 + 4198f64 commit 48f98ccCopy full SHA for 48f98cc
src/Cli/Executable/Mongodump.php
@@ -266,7 +266,17 @@ protected function createCommandLine() : CommandLine
266
}
267
268
269
- $cmd->addOptionIfNotEmpty('--excludeCollection', $this->excludeCollections);
+ if (count($this->excludeCollections)) {
270
+ foreach ($this->excludeCollections as $col) {
271
+ $cmd->addOption('--excludeCollection', $col, ' ');
272
+ }
273
274
+
275
+ if (count($this->excludeCollectionsWithPrefix)) {
276
+ foreach ($this->excludeCollectionsWithPrefix as $col) {
277
+ $cmd->addOption('--excludeCollectionWithPrefix', $col, ' ');
278
279
280
$cmd->addOptionIfNotEmpty('--excludeCollectionWithPrefix', $this->excludeCollectionsWithPrefix);
281
282
return $process;
0 commit comments