1. Introduction | 2. Getting started | 3. Configuration options | 4. Entity Generation | 5. CRUD Generation | 6. Enum Generation | 7. Form Generation | 8. Voter Generation | 9. Datatable Generation | 10. Overriding twig files | 11. Extending this bundle
command: wame:generate:crud
Similar to doctrine:generate:crud command, but it will also allow you to generate a voter and datatable.
You can directly specify for which entity you want to generate CRUD:
php bin/console wame:generate:crud Product
If you only specify an entity name, like the example above, the generator assumes that you're using the default bundle, which you can specify in the configuration.
If the entity is located in a different bundle, you can still use the shortcut notation:
php bin/console wame:generate:entity AcmeBundle:Product
Sensio already marked this option as deprecated and it will be removed in Symfony 4. Since it can only cause confusion, this option has been left out for this generator.
The annotation format is the only supported format in this generator.
Add this option if you want to usage a datatable class instead of a plain table. Using this option only makes sense in non-interactive mode as it will be set true in interactive mode.
Add this option if you want to have the voter generated. Using this option only makes sense in non-interactive mode as it will be set true in interactive mode.
The prefix to use for each route that identifies an action.
Whether or not to generate the new, create, edit, update and delete actions.
Add this option if you want to overwrite files if they already exist. Be cautious of using this option as you may lose custom changes.