Hi Guys,
I have multiple databases set up like this in database.yml:
test:
foo:
class: sfPropelDatabase
param:
dsn: 'mysql://root:@localhost/test_foo'
foo1:
class: sfPropelDatabase
param:
dsn: 'mysql://root:@localhost/test_foo1'
... in my code, I pick the db I want like this:
// test is prepended since its in the 'test' group in
databases.yml
$this->con = Propel::getConnection('foo1');
...but it always picks 'foo', never 'foo1'. To prove that I do:
$name = $this->con->getDatabaseInfo()->getName();
$this->diag("db verify: ".$name);
...and the answer is always 'foo'.
What am I missing? What would be the correct way to switch db
connections?
TIA,
-T
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
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.