1
0
mirror of synced 2025-01-31 12:32:59 +03:00
doctrine2/playground/index.php
2007-10-08 22:47:59 +00:00

12 lines
375 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();
$manager->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_ALL);
Doctrine::loadModels('test_models');
$data = new Doctrine_Data();
$data->importData('fixtures.yml');