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";
}