|
@@ -43,27 +43,27 @@ You have to limit generation of entities:
|
|
|
|
|
|
* To a bundle:
|
|
* To a bundle:
|
|
|
|
|
|
- <info>./app/console doctrine:generate:entities MyCustomBundle</info>
|
|
|
|
|
|
+ <info>php app/console doctrine:generate:entities MyCustomBundle</info>
|
|
|
|
|
|
* To a single entity:
|
|
* To a single entity:
|
|
|
|
|
|
- <info>./app/console doctrine:generate:entities MyCustomBundle:User</info>
|
|
|
|
- <info>./app/console doctrine:generate:entities MyCustomBundle/Entity/User</info>
|
|
|
|
|
|
+ <info>php app/console doctrine:generate:entities MyCustomBundle:User</info>
|
|
|
|
+ <info>php app/console doctrine:generate:entities MyCustomBundle/Entity/User</info>
|
|
|
|
|
|
* To a namespace
|
|
* To a namespace
|
|
|
|
|
|
- <info>./app/console doctrine:generate:entities MyCustomBundle/Entity</info>
|
|
|
|
|
|
+ <info>php app/console doctrine:generate:entities MyCustomBundle/Entity</info>
|
|
|
|
|
|
If the entities are not stored in a bundle, and if the classes do not exist,
|
|
If the entities are not stored in a bundle, and if the classes do not exist,
|
|
the command has no way to guess where they should be generated. In this case,
|
|
the command has no way to guess where they should be generated. In this case,
|
|
you must provide the <comment>--path</comment> option:
|
|
you must provide the <comment>--path</comment> option:
|
|
|
|
|
|
- <info>./app/console doctrine:generate:entities Blog/Entity --path=src/</info>
|
|
|
|
|
|
+ <info>php app/console doctrine:generate:entities Blog/Entity --path=src/</info>
|
|
|
|
|
|
You should provide the <comment>--no-backup</comment> option if you don't mind to back up files
|
|
You should provide the <comment>--no-backup</comment> option if you don't mind to back up files
|
|
before to generate entities:
|
|
before to generate entities:
|
|
|
|
|
|
- <info>./app/console doctrine:generate:entities Blog/Entity --no-backup</info>
|
|
|
|
|
|
+ <info>php app/console doctrine:generate:entities Blog/Entity --no-backup</info>
|
|
|
|
|
|
<error>Important:</error> Even if you specified Inheritance options in your
|
|
<error>Important:</error> Even if you specified Inheritance options in your
|
|
XML or YAML Mapping files the generator cannot generate the base and
|
|
XML or YAML Mapping files the generator cannot generate the base and
|