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
Written by Jose Luis Quintana
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#