Skip to content

Instantly share code, notes, and snippets.

@joseluisq
Created March 26, 2014 18:03
Show Gist options
  • Save joseluisq/9789486 to your computer and use it in GitHub Desktop.
Save joseluisq/9789486 to your computer and use it in GitHub Desktop.
Windows Batch Doctrine 2 Entities Generator
@ECHO OFF
:: Windows Batch Doctrine 2 Entities Generator
:: by Jose Luis Quintana
:: -----------------------------------------------------------------
:: Previous installation via Composer
:: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/configuration.html
::
:: Yaml mapping directory: ./config/yaml
:: Entities directory: ./src
echo Doctrine 2 Entities Generator v0.1
echo ==================================
call php ./vendor/doctrine/orm/bin/doctrine orm:convert-mapping --from-database yml ./config/yaml
call php ./vendor/doctrine/orm/bin/doctrine orm:generate-entities ./src
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment