Skip to content

Commit 820d574

Browse files
authored
Merge pull request doctrine#1904 from doctrine/2.15.x-merge-up-into-2.16.x_u10LPM9L
Merge release 2.15.1 into 2.16.x
2 parents 3a854f8 + 5a305c5 commit 820d574

20 files changed

+46
-21
lines changed

docs/en/configuration.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Configuration Reference
2727
# RDBMS specific; Refer to the manual of your RDBMS for more information
2828
charset: ~
2929
30+
# Adds the given suffix to the configured database name, this option has no effects for the SQLite platform
3031
dbname_suffix: ~
3132
3233
# SQLite specific
@@ -151,6 +152,8 @@ Configuration Reference
151152
user: root
152153
password: ~
153154
charset: ~
155+
156+
# Adds the given suffix to the configured database name, this option has no effects for the SQLite platform
154157
dbname_suffix: ~
155158
path: ~
156159
memory: ~
@@ -451,6 +454,7 @@ Configuration Reference
451454
<doctrine:default-table-option name="engine">InnoDB</doctrine:default-table-option>
452455
453456
<!-- example -->
457+
<!-- dbname_suffix: Adds the given suffix to the configured database name, this option has no effects for the SQLite platform -->
454458
<!-- unix-socket: The unix socket to use for MySQL -->
455459
<!-- persistent: True to use as persistent connection for the ibm_db2 driver -->
456460
<!-- protocol: The protocol to use for the ibm_db2 driver (default to TCPIP if omitted) -->

src/Command/CreateDatabaseDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function configure(): void
2525
$this
2626
->setName('doctrine:database:create')
2727
->setDescription('Creates the configured database')
28-
->addOption('connection', 'c', InputOption::VALUE_OPTIONAL, 'The connection to use for this command')
28+
->addOption('connection', 'c', InputOption::VALUE_REQUIRED, 'The connection to use for this command')
2929
->addOption('if-not-exists', null, InputOption::VALUE_NONE, 'Don\'t trigger an error, when the database already exists')
3030
->setHelp(<<<'EOT'
3131
The <info>%command.name%</info> command creates the default connections database:

src/Command/DropDatabaseDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure()
3333
$this
3434
->setName('doctrine:database:drop')
3535
->setDescription('Drops the configured database')
36-
->addOption('connection', 'c', InputOption::VALUE_OPTIONAL, 'The connection to use for this command')
36+
->addOption('connection', 'c', InputOption::VALUE_REQUIRED, 'The connection to use for this command')
3737
->addOption('if-exists', null, InputOption::VALUE_NONE, 'Don\'t trigger an error, when the database doesn\'t exist')
3838
->addOption('force', 'f', InputOption::VALUE_NONE, 'Set this parameter to execute this action')
3939
->setHelp(<<<'EOT'

src/Command/ImportMappingDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function configure(): void
4646
->setName('doctrine:mapping:import')
4747
->addArgument('name', InputArgument::REQUIRED, 'The bundle or namespace to import the mapping information to')
4848
->addArgument('mapping-type', InputArgument::OPTIONAL, 'The mapping type to export the imported mapping information to')
49-
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
49+
->addOption('em', null, InputOption::VALUE_REQUIRED, 'The entity manager to use for this command')
5050
->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be mapped.')
5151
->addOption('force', null, InputOption::VALUE_NONE, 'Force to overwrite existing mapping files.')
5252
->addOption('path', null, InputOption::VALUE_REQUIRED, 'The path where the files would be generated (not used when a bundle is passed).')

src/Command/Proxy/ClearMetadataCacheDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ protected function configure(): void
2626
return;
2727
}
2828

29-
$this->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
29+
$this->addOption('em', null, InputOption::VALUE_REQUIRED, 'The entity manager to use for this command');
3030
}
3131
}

src/Command/Proxy/ClearQueryCacheDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ protected function configure(): void
2626
return;
2727
}
2828

29-
$this->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
29+
$this->addOption('em', null, InputOption::VALUE_REQUIRED, 'The entity manager to use for this command');
3030
}
3131
}

src/Command/Proxy/ClearResultCacheDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ protected function configure(): void
2626
return;
2727
}
2828

29-
$this->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
29+
$this->addOption('em', null, InputOption::VALUE_REQUIRED, 'The entity manager to use for this command');
3030
}
3131
}

src/Command/Proxy/CollectionRegionDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ protected function configure(): void
2525
return;
2626
}
2727

28-
$this->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
28+
$this->addOption('em', null, InputOption::VALUE_REQUIRED, 'The entity manager to use for this command');
2929
}
3030
}

src/Command/Proxy/ConvertMappingDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function configure()
3434
return;
3535
}
3636

37-
$this->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
37+
$this->addOption('em', null, InputOption::VALUE_REQUIRED, 'The entity manager to use for this command');
3838
}
3939

4040
/**

src/Command/Proxy/CreateSchemaDoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ protected function configure(): void
2727
return;
2828
}
2929

30-
$this->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
30+
$this->addOption('em', null, InputOption::VALUE_REQUIRED, 'The entity manager to use for this command');
3131
}
3232
}

0 commit comments

Comments
 (0)