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

Opening Connections

Doctrine_Manager provides the static method Doctrine_Manager::connection() which opens new connections.

In this example we will show you to open a new connection:

// test.php

// ...
$conn = Doctrine_Manager::connection('mysql://username:password@localhost/test', '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.