1
0
mirror of synced 2025-01-18 06:21:40 +03:00
doctrine2/playground/index.php

20 lines
475 B
PHP

<?php
require_once('playground.php');
$dsn = 'mysql://jwage:elite1baller@localhost/doctrine_playground';
$conn = Doctrine_Manager::connection($dsn);
$manager = Doctrine_Manager::getInstance();
$models = Doctrine::loadModels('test_models');
$manager->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_ALL);
$conn->export->exportClasses($models);
$query = new Doctrine_Search_Query('Article');
$query->search('test');
$results = $query->execute();
print_r($results);