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
This bundle is a generator like the SensioGeneratorBundle , with changes to fit specific needs:
- Conform PHP 7.1 typehints
- Other options for entity generation:
- Usage of enums (by using DoctrineEnumBundle)
- Usage of StofDoctrineExtensionsBundle: timestampable, softdeleteable, blameable
- Usage of translation-file
- Usage of validations
- Other options for CRUD generation:
- Usage of DatatablesBundle
- Usage of Voters
- Ability to override many more aspects of this bundle
Basic usage is quite similar, but 'doctrine' is replaced with 'wame' in the
command names: doctrine:generate:entity
becomes wame:generate:entity
.
Furthermore, not all doctrine-commands are replaced by this bundle and some
entirely different commands have been added.
In the table below you can see a quick overview of the commands compared to Sensio:
Sensio | WAME |
---|---|
generate:bundle | n/a |
generate:doctrine:entities | n/a |
generate:controller | n/a |
datatable:generate:class | n/a |
generate:doctrine:entity | wame:generate:entity |
generate:doctrine:crud | wame:generate:crud |
generate:doctrine:form | wame:generate:form |
n/a | wame:generate:voter |
n/a | wame:generate:datatable |
n/a | wame:generate:enum |