File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
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
+
1
33
# Upgrade to UNRELEASED
2
34
3
35
## DEPRECATION: direct usage of the PDO APIs in the DBAL API
You can’t perform that action at this time.
0 commit comments