Skip to content

Instantly share code, notes, and snippets.

@caefer
Created August 29, 2010 16:54
Show Gist options
  • Save caefer/556456 to your computer and use it in GitHub Desktop.
Save caefer/556456 to your computer and use it in GitHub Desktop.
$configuration = ProjectConfiguration::getActive();
$databaseManager = new sfDatabaseManager($configuration);
$dbh = new Doctrine_Adapter_Mock('sqlite');
$conn = Doctrine_Manager::getInstance()->openConnection($dbh, 'doctrine', true);
Doctrine_Manager::getInstance()->createDatabases('doctrine');
Doctrine_Core::createTablesFromArray(array('TestRecord'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment