When we have a multiple database connection i encountered a bug in the generation of base model class.
The class is ok when I use a admin module, cannot connect in normal module.
Workaround is to add a new bind in the lib/model/doctrine/base/Base{MODELNAME}.class.php file
The row autogenerated for bind is:
Doctrine_Manager::getInstance()->bindComponent('ModelName?', 'database2');
The workaround is to add a new line with lower case of model name:
Doctrine_Manager::getInstance()->bindComponent('ModelName?', 'database2');
Doctrine_Manager::getInstance()->bindComponent('modelname', 'database2');
This way all ok.
This modify lost when you regenerate the model classes