Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
bb1e87b0
Commit
bb1e87b0
authored
Oct 25, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed adapter docs since it is not working.
parent
1989b099
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
opening-a-new-connection.txt
...ocs/en/connection-management/opening-a-new-connection.txt
+0
-20
No files found.
manual/docs/en/connection-management/opening-a-new-connection.txt
View file @
bb1e87b0
...
@@ -11,23 +11,3 @@ try {
...
@@ -11,23 +11,3 @@ try {
echo 'Connection failed: ' . $e->getMessage();
echo 'Connection failed: ' . $e->getMessage();
}
}
</code>
</code>
If your database extension isn't supported by PDO you can use special {{Doctrine_Adapter}} class (if available). The following example uses db2 adapter:
<code type="php">
$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();
}
</code>
The next step is opening a new {{Doctrine_Connection}}.
<code type="php">
$conn = Doctrine_Manager::connection($dbh);
</code>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment