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

Get All Connections

You can retrieve an array of all the registered connections by using the Doctrine_Manager::getConnections() method like below:

// test.php

// ...
$conns = $manager->getConnections();
foreach ($conns as $conn) {
    echo $conn->getName() . "\n";
}

The above is essentially the same as iterating over the Doctrine_Manager object like we did earlier. Here it is again:

// test.php

// ...
foreach ($manager as $conn) {
    echo $conn->getName() . "\n";
}

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.