diff --git a/manual/docs/en/connection-management/opening-a-new-connection.txt b/manual/docs/en/connection-management/opening-a-new-connection.txt index 2d79c4526..4e927576f 100644 --- a/manual/docs/en/connection-management/opening-a-new-connection.txt +++ b/manual/docs/en/connection-management/opening-a-new-connection.txt @@ -11,23 +11,3 @@ try { echo 'Connection failed: ' . $e->getMessage(); } - -If your database extension isn't supported by PDO you can use special {{Doctrine_Adapter}} class (if available). The following example uses db2 adapter: - - -$dsn = 'db2:dbname=testdb;host=127.0.0.1'; -$user = 'dbuser'; -$password = 'dbpass'; - -try { - $dbh = Doctrine_Adapter::connect($dsn, $user, $password); -} catch (PDOException $e) { - echo 'Connection failed: ' . $e->getMessage(); -} - - -The next step is opening a new {{Doctrine_Connection}}. - - -$conn = Doctrine_Manager::connection($dbh); -