1
0
mirror of synced 2025-01-30 12:01:44 +03:00
doctrine2/playground/index.php
2007-10-08 18:40:14 +00:00

12 lines
379 B
PHP

<?php
require_once('playground.php');
$dbh = new PDO('mysql:host=localhost;dbname=test', 'jwage', 'elite1baller');
$conn = Doctrine_Manager::connection($dbh);
$manager = Doctrine_Manager::getInstance();
//Doctrine::loadModels('test_models');
$import = new Doctrine_Import_Schema();
$import->generateBaseClasses(true);
$import->importSchema('schema.yml', 'yml', 'test_models');