Hi,
I'm dealing with a setup with multiple databases with identical
schemas but individual data. My problem is that I try to handle the
connections manually but Symfony doesn't play nice. I basically
defined a dummy DB connection ("dummy_db") so I can still define the
models properly however in the code I try to explicitly connect to a
specific DB instance using Doctrine_Manager::connection() and the
manipulate the objects but Symfony still tries to connect to dummy_db.

Example:

$con = MMDBConnection::getRead("de");
$this->user = $con->getTable("User")->find( 1234 );

this results in an exception: Unknown database 'dummy_db'
I've verified that $con contains the correct connection to the real DB
"member_db" but find() still tries to connect the dummy_db event
though I get the table from $con.

Does anyone have an idea how I can work with custom DB connections
without Symfony interfering?

Regards,
   Dennis

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to