Hi, I have written an application that I would like to have connect to an alternate data source depending on a condition.
The application is a game that would like to have multiple instances of, such as "trial.thisgame.com" connect to one database while " real.thisgame.com" connects to another (filter based on url), without duplicating the app code needlessly (which I could do but doesn't seem clean). I already have a dev environment, I just don't want to maintain multiple production code bases. The application and schema are exactly the same, I just want the app to be working from and updating a different set of data. I know how to manually access two different databases, ie: $database1_connection_handler = Propel::getConnection(FooPeer:: DATABASE_NAME); $database2_connection_handler = Propel::getConnection(BarPeer:: DATABASE_NAME); But I'm looking for how to change/set the default database for all subsequent db calls. Make sense? Any help would be greatly appreciated. Cheers, Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---