Skip to content

Commit

Permalink
Updated UPGRADE.md for 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Jan 4, 2018
1 parent 3203c38 commit 7a7411b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
# Upgrade to DEVELOP

## BC BREAK: the PDO symbols are no longer part of the DBAL API

1. The support of `PDO::PARAM_*`, `PDO::FETCH_*`, `PDO::CASE_*` and `PDO::PARAM_INPUT_OUTPUT` constants in the DBAL API is removed.
2. `\Doctrine\DBAL\Driver\PDOStatement` does not extend `\PDOStatement` anymore.

Before:

use Doctrine\DBAL\Portability\Connection;

$params = array(
'wrapperClass' => Connection::class,
'fetch_case' => PDO::CASE_LOWER,
);

$stmt->bindValue(1, 1, PDO::PARAM_INT);
$stmt->fetchAll(PDO::FETCH_COLUMN);

After:

use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\Portability\Connection;

$params = array(
'wrapperClass' => Connection::class,
'fetch_case' => Connection::CASE_LOWER,
);

$stmt->bindValue(1, 1, Statement::PARAM_INT);
$stmt->fetchAll(Statement::FETCH_COLUMN);

# Upgrade to UNRELEASED

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

0 comments on commit 7a7411b

Please sign in to comment.