wame/generator-bundle2

Generator for your symfony entities and crud

Installs: 1 611

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 5

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2017-10-08 18:35 UTC

This package is auto-updated.

Last update: 2024-11-05 05:59:50 UTC


README

This bundle is a heaviliy altered version of the SensioGeneratorBundle. It specifically has changes and extra features regarding entity and CRUD generations.

Documentation

  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

TODO's

  • Usage of the 'Resources/translations/roles.(en|nl).yml.twig'
  • Configuration:
    • There are configuration settings for using different trait-classes, but the generator does not take these settings into account. This should be implemented or the settings should be removed.
    • A setting for using datatables by default exists, but the generator currently ignores this setting. This is still to be implemented.
    • More settings/defaults:
      we may want to set specific traits to be used or not by default. For instance, some application may never use datatables, so that option should be possible to disable for those applications.
  • Tests:
    • lots of tests still need to be added, like interactive tests and testing expected failures.
    • Doctrine PSR-4 bug:
      The getBasePathForClass method in DisconnectedMetadataFactory checks entities by their namespace as if PSR-0 is used. Without this GeneratorBundle being in directory 'wame', the RuntimeException will be thrown.