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

Close Connection

You can easily close a connection and remove it from the Doctrine connection registry with the following code:

// test.php

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

$manager->closeConnection($conn);

If you wish to close the connection but not remove it from the Doctrine connection registry you can use the following code instead:

// test.php

// ...
$conn = Doctrine_Manager::connection();
$conn->close();

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.