You are currently reading the 1.2 documentation. Switch to 2.2  2.1  2.0 

Change Current Connection

You can change the current connection by calling Doctrine_Manager::setCurrentConnection().

// test.php

// ...
$manager->setCurrentConnection('connection 1');

echo $manager->getCurrentConnection()->getName(); // connection 1

Questions and Feedback

If you find a problem with the documentation or have a suggestion, please register and open a ticket.

If you need support or have a technical question, you can post to the user mailing-list.