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
ea1b8643
Commit
ea1b8643
authored
Nov 14, 2013
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add exception handling to UPGRADE and rename to UPGRADE.md
parent
1dbd6d38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
UPGRADE.md
UPGRADE.md
+32
-0
No files found.
UPGRADE
→
UPGRADE
.md
View file @
ea1b8643
# Upgrade to 2.5
A new method was added to
`Doctrine\DBAL\Driver`
interface that you need to implement
if your project contains custom drivers.
```
php
/**
* @param \Exception $exception
*
* @return int
*/
public
function
convertExceptionCode
(
\Exception
$exception
);
```
The most basic implementation for this method just returns 0:
```
php
/**
* @param \Exception $exception
*
* @return int
*/
public
function
convertExceptionCode
(
\Exception
$exception
)
{
return
0
;
}
```
You can see the MySQL, SQLite and PostgreSQL drivers for sample implementations with
the new feature and take a look at
`tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php`
for testing this functionality.
# Upgrade to 2.4
## Doctrine\DBAL\Schema\Constraint
...
...
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