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

Get Connection Name

You can easily get the name of a Doctrine_Connection instance with the following code:

// test.php

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

$name = $manager->getConnectionName($conn);

echo $name; // 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.