Skip to content

Commit 7a7411b

Browse files
committed
Updated UPGRADE.md for 3.x
1 parent 3203c38 commit 7a7411b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

UPGRADE.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
# Upgrade to DEVELOP
2+
3+
## BC BREAK: the PDO symbols are no longer part of the DBAL API
4+
5+
1. The support of `PDO::PARAM_*`, `PDO::FETCH_*`, `PDO::CASE_*` and `PDO::PARAM_INPUT_OUTPUT` constants in the DBAL API is removed.
6+
2. `\Doctrine\DBAL\Driver\PDOStatement` does not extend `\PDOStatement` anymore.
7+
8+
Before:
9+
10+
use Doctrine\DBAL\Portability\Connection;
11+
12+
$params = array(
13+
'wrapperClass' => Connection::class,
14+
'fetch_case' => PDO::CASE_LOWER,
15+
);
16+
17+
$stmt->bindValue(1, 1, PDO::PARAM_INT);
18+
$stmt->fetchAll(PDO::FETCH_COLUMN);
19+
20+
After:
21+
22+
use Doctrine\DBAL\Driver\Statement;
23+
use Doctrine\DBAL\Portability\Connection;
24+
25+
$params = array(
26+
'wrapperClass' => Connection::class,
27+
'fetch_case' => Connection::CASE_LOWER,
28+
);
29+
30+
$stmt->bindValue(1, 1, Statement::PARAM_INT);
31+
$stmt->fetchAll(Statement::FETCH_COLUMN);
32+
133
# Upgrade to UNRELEASED
234

335
## DEPRECATION: direct usage of the PDO APIs in the DBAL API

0 commit comments

Comments
 (0)