Last Updated: February 25, 2016
·
1.337K
· joseluisq

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