File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-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\ColumnCase;
23
+ use Doctrine\DBAL\FetchMode;
24
+ use Doctrine\DBAL\ParameterType;
25
+ use Doctrine\DBAL\Portability\Connection;
26
+
27
+ $params = array(
28
+ 'wrapperClass' => Connection::class,
29
+ 'fetch_case' => ColumnCase::LOWER,
30
+ );
31
+
32
+ $stmt->bindValue(1, 1, ParameterType::INTEGER);
33
+ $stmt->fetchAll(FetchMode::COLUMN);
34
+
1
35
# Upgrade to UNRELEASED
2
36
3
37
## DEPRECATION: direct usage of the PDO APIs in the DBAL API
You can’t perform that action at this time.
0 commit comments