Skip to content

Instantly share code, notes, and snippets.

View feliphebueno's full-sized avatar
☠️
Getting it done!

Bueno, Feliphe. feliphebueno

☠️
Getting it done!
View GitHub Profile
@feliphebueno
feliphebueno / generator.php
Created January 25, 2017 13:42 — forked from tawfekov/generator.php
Doctrine2 Generate Entities form Existing Database
<?php
include '../vendor/autoload.php';
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__);
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__);
$classLoader->register();
// config
$config = new \Doctrine\ORM\Configuration();