One command does it all!

        $ php app/console avro:generate
    

Prompt 1: Provide the bundle/entity name

Enter an entity you wish to generate code from. Use shortcut notation (Ex. AvroDemoBundle:Post).

You can omit the entity to generate code for all of the entities mapped in the bundle! (ex. AvroDemoBundle)

If the bundle does not exist, it will prompt you whether or not you would like to create it.


Prompt 2: Provide a tag

Enter a tag. This allows you to only generate files you have marked with a specific tag in your configuration.

Press "enter" to bypass the tag filter and generate all of the files in your config.


← Included TemplatesTodo →