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

Iterating Connections

You can iterate over the opened connections by simply passing the manager object to a foreach clause. This is possible since Doctrine_Manager implements special IteratorAggregate interface.

The IteratorAggregate is a special PHP interface for implementing iterators in to your objects.

// 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.