Merge pull request #673 from hell0w0rd/namespace_base_commands_names
Namespace based command names
This commit is contained in:
commit
e8b3598751
@ -131,6 +131,20 @@ The following Commands are currently available:
|
|||||||
update the database schema of EntityManager Storage Connection or
|
update the database schema of EntityManager Storage Connection or
|
||||||
generate the SQL output.
|
generate the SQL output.
|
||||||
|
|
||||||
|
For these commands are also available aliases:
|
||||||
|
|
||||||
|
|
||||||
|
- ``orm:convert:d1-schema`` is alias for ``orm:convert-d1-schema``.
|
||||||
|
- ``orm:convert:mapping`` is alias for ``orm:convert-mapping``.
|
||||||
|
- ``orm:generate:entities`` is alias for ``orm:generate-entities``.
|
||||||
|
- ``orm:generate:proxies`` is alias for ``orm:generate-proxies``.
|
||||||
|
- ``orm:generate:repositories`` is alias for ``orm:generate-repositories``.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Console also supports auto completion, for example, instead of
|
||||||
|
``orm:clear-cache:query`` you can use just ``o:c:q``.
|
||||||
|
|
||||||
Database Schema Generation
|
Database Schema Generation
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
|
@ -102,6 +102,7 @@ class ConvertDoctrine1SchemaCommand extends Command
|
|||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setName('orm:convert-d1-schema')
|
->setName('orm:convert-d1-schema')
|
||||||
|
->setAliases(array('orm:convert:d1-schema'))
|
||||||
->setDescription('Converts Doctrine 1.X schema into a Doctrine 2.X schema.')
|
->setDescription('Converts Doctrine 1.X schema into a Doctrine 2.X schema.')
|
||||||
->setDefinition(array(
|
->setDefinition(array(
|
||||||
new InputArgument(
|
new InputArgument(
|
||||||
|
@ -49,6 +49,7 @@ class ConvertMappingCommand extends Command
|
|||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setName('orm:convert-mapping')
|
->setName('orm:convert-mapping')
|
||||||
|
->setAliases(array('orm:convert:mapping'))
|
||||||
->setDescription('Convert mapping information between supported formats.')
|
->setDescription('Convert mapping information between supported formats.')
|
||||||
->setDefinition(array(
|
->setDefinition(array(
|
||||||
new InputOption(
|
new InputOption(
|
||||||
|
@ -47,6 +47,7 @@ class GenerateEntitiesCommand extends Command
|
|||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setName('orm:generate-entities')
|
->setName('orm:generate-entities')
|
||||||
|
->setAliases(array('orm:generate:entities'))
|
||||||
->setDescription('Generate entity classes and method stubs from your mapping information.')
|
->setDescription('Generate entity classes and method stubs from your mapping information.')
|
||||||
->setDefinition(array(
|
->setDefinition(array(
|
||||||
new InputOption(
|
new InputOption(
|
||||||
|
@ -45,6 +45,7 @@ class GenerateProxiesCommand extends Command
|
|||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setName('orm:generate-proxies')
|
->setName('orm:generate-proxies')
|
||||||
|
->setAliases(array('orm:generate:proxies'))
|
||||||
->setDescription('Generates proxy classes for entity classes.')
|
->setDescription('Generates proxy classes for entity classes.')
|
||||||
->setDefinition(array(
|
->setDefinition(array(
|
||||||
new InputOption(
|
new InputOption(
|
||||||
|
@ -46,6 +46,7 @@ class GenerateRepositoriesCommand extends Command
|
|||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setName('orm:generate-repositories')
|
->setName('orm:generate-repositories')
|
||||||
|
->setAliases(array('orm:generate:repositories'))
|
||||||
->setDescription('Generate repository classes from your mapping information.')
|
->setDescription('Generate repository classes from your mapping information.')
|
||||||
->setDefinition(array(
|
->setDefinition(array(
|
||||||
new InputOption(
|
new InputOption(
|
||||||
|
Loading…
Reference in New Issue
Block a user