Multiple database connections are a great feature, but if you plan to generate a schema for each database, you will most certainly run into some problems caused by different connection names. This Howto will show you how to solve the problem.
Connections
Let's start by defining our database connections: open up the file config/databases.yml and create at least two connections with different names (like „database” and „database1”).
all:
database:
class: sfPropelDatabase
param:
dsn: mysql://ptest:ptest@localhost/ptest
database1:
class: sfPropelDatabase
param:
dsn: mysql://ptest:ptest@localhost/ptest2
Schema
In the config/propel.ini configuration file, go to the the sixth line and edit the „propel.database.url” setting so that it matches the first database connection.
propel.database.url = …[Read more]