With sfDoctrine2Plugin, when I use the command-line tool, with command:
symfony doctrine:generate-module ...
I get an Exception saying The "default" context does not exist.
It comes from plugins/sfDoctrine2Plugin/lib/generator/sfDoctrineGenerator.class.php, which calls sfContext::getInstance() on line 32 (context is not available in console tasks).
I solved the issue by replacing this line (32):
$this->databaseManager = sfContext::getInstance()->getDatabaseManager();
by these two lines:
$configuration = sfProjectConfiguration::getActive();
$this->databaseManager = new sfDatabaseManager($configuration);
Environment:
sfDoctrine2Plugin (currently embedding Doctrine 2.0.0 Alpha 1) used with Symfony 1.3.0 BETA 1
WampServer, Apache 2.2.11, PHP 5.3.0, MySQL 5.1.36