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

Retrieve Connections

If you use the Doctrine_Manager::connection() method and don't pass any arguments it will return the current connection:

// test.php

// ...
$conn2 = Doctrine_Manager::connection();

if ($conn === $conn2) {
    echo 'Doctrine_Manager::connection() returns the current connection';
}

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.