Skip to content

Commit

Permalink
Deprecate the Synchronizer package
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Aug 19, 2020
1 parent dba0ea2 commit 7532e41
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Upgrade to 2.11

## Deprecated `Synchronizer` package

The `Doctrine\DBAL\Schema\Synchronizer\SchemaSynchronizer` interface and all its implementations are deprecated.

## Deprecated usage of wrapper-level components as implementations of driver-level interfaces

The usage of the wrapper `Connection` and `Statement` classes as implementations of the `Driver\Connection` and `Driver\Statement` interfaces is deprecated.
Expand Down
4 changes: 2 additions & 2 deletions docs/en/reference/sharding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ you have to sort the data in the application.
$sql = "SELECT * FROM customers";
$rows = $shardManager->queryAll($sql, $params);
Schema Operations: SchemaSynchronizer Interface
-----------------------------------------------
Schema Operations: SchemaSynchronizer Interface (deprecated)
------------------------------------------------------------

Schema Operations in a sharding architecture are tricky. You have to perform
them on all databases instances (shards) at the same time. Also Doctrine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Abstract schema synchronizer with methods for executing batches of SQL.
*
* @deprecated
*/
abstract class AbstractSchemaSynchronizer implements SchemaSynchronizer
{
Expand Down
2 changes: 2 additions & 0 deletions lib/Doctrine/DBAL/Schema/Synchronizer/SchemaSynchronizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/**
* The synchronizer knows how to synchronize a schema with the configured
* database.
*
* @deprecated
*/
interface SchemaSynchronizer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* Schema Synchronizer for Default DBAL Connection.
*
* @deprecated
*/
class SingleDatabaseSynchronizer extends AbstractSchemaSynchronizer
{
Expand Down

0 comments on commit 7532e41

Please sign in to comment.