Created
March 26, 2014 18:03
-
-
Save joseluisq/9789486 to your computer and use it in GitHub Desktop.
Windows Batch Doctrine 2 Entities Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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