Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove AbstractSchemaManager::getDatabasePlatform() #5441

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ awareness about deprecated code.

# Upgrade to 4.0

## BC BREAK: removed `AbstractSchemaManager::getDatabasePlatform()`

The `AbstractSchemaManager::getDatabasePlatform()` method has been removed.

## BC BREAK: removed Schema Visitor API.

The following interfaces and classes have been removed:
Expand Down
20 changes: 0 additions & 20 deletions src/Schema/AbstractSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\Exception\NotSupported;
use Doctrine\DBAL\Result;
use Doctrine\Deprecations\Deprecation;

use function array_filter;
use function array_intersect;
Expand Down Expand Up @@ -54,25 +53,6 @@ public function __construct(Connection $connection, AbstractPlatform $platform)
$this->_platform = $platform;
}

/**
* Returns the associated platform.
*
* @deprecated Use {@link Connection::getDatabasePlatform()} instead.
*
* @return T
*/
public function getDatabasePlatform(): AbstractPlatform
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5387',
'AbstractSchemaManager::getDatabasePlatform() is deprecated.'
. ' Use Connection::getDatabasePlatform() instead.'
);

return $this->_platform;
}

/**
* Lists the available databases for this connection.
*
Expand Down