Hi Michal,

put this code at the end of your bootstrap/functional.php file. Don't
forget to adapt the paths to your model and to your fixtures.

------------
// Doctrine initialization
$manager = new sfDatabaseManager($configuration);

Doctrine::createTablesFromModels(dirname(__FILE__).'/../fixtures/project/lib/model');
Doctrine::loadData(dirname(__FILE__).'/../fixtures/project/data/fixtures');
------------

This only works if you are using SQLite memory databases for testing
though. If you use some kind of persistent database, you need to add

------------
Doctrine::dropDatabases();
Doctrine::createDatabases();
------------

before calling createTablesFromModels().


Bernhard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to