I need to set environment specific table prefixes, so i found unperfect solution in inserting this in ProjectConfiguration::configureDoctrine(Doctrine_Manager $manager): (config/ProjectConfiguration.class.php)
if (sfConfig::get('app_database_table_prefix')) {
$manager->setAttribute(Doctrine_Core::ATTR_TBLNAME_FORMAT,
sfConfig::get('app_database_table_prefix'));
}
... and then i can set env-unique prefixes in app.yml:
prod:
database_table_prefix: prefix__%s
BUT.. this is cool for all app, except plugins. Plugins ignores config/ProjectConfiguration.class.php.
Dont you know about alglobal solution WITHOUT changing anything in plugins directory (i need something what will influent all posible future applications plugins too)