2007-09-13 16:55:32 +00:00
|
|
|
<?php
|
2007-09-19 16:26:28 +00:00
|
|
|
require_once('playground.php');
|
2007-09-27 22:02:13 +00:00
|
|
|
|
2007-10-03 21:43:22 +00:00
|
|
|
$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);
|