md21rg
Last Updated: February 25, 2016
·
1.024K
· joseluisq
A4b15506108e1cf337adccce77602d51

Windows Batch Entities Generator for PHP Doctrine 2

A simple Windows batch script entities generator for PHP Doctrine 2

Required

Previous installation via Composer<br>
Doctrine 2 Installation and Configuration

Directories

In your composer directory installation:<br>
-Yaml mapping directory: ./config/yaml<br>
-Entities directory: ./src

@ECHO OFF

:: Windows Batch PHP Doctrine 2 Entities Generator 
:: 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
Say Thanks
Respond