diff --git a/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php b/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php index 4e7d0a61eb0..a900cad025e 100644 --- a/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php +++ b/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php @@ -3511,6 +3511,12 @@ public function getSQLResultCasing($column) */ public function fixSchemaElementName($schemaElementName) { + Deprecation::trigger( + 'doctrine/dbal', + 'https://github.com/doctrine/dbal/pull/4132', + 'AbstractPlatform::fixSchemaElementName is deprecated with no replacement and removed in DBAL 3.0' + ); + return $schemaElementName; } diff --git a/lib/Doctrine/DBAL/Platforms/OraclePlatform.php b/lib/Doctrine/DBAL/Platforms/OraclePlatform.php index 9d2e44cbb8d..bfb6270c1c4 100644 --- a/lib/Doctrine/DBAL/Platforms/OraclePlatform.php +++ b/lib/Doctrine/DBAL/Platforms/OraclePlatform.php @@ -11,6 +11,7 @@ use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\TransactionIsolationLevel; use Doctrine\DBAL\Types\BinaryType; +use Doctrine\Deprecations\Deprecation; use InvalidArgumentException; use function array_merge; @@ -1104,6 +1105,12 @@ public function getTimeFormatString() */ public function fixSchemaElementName($schemaElementName) { + Deprecation::trigger( + 'doctrine/dbal', + 'https://github.com/doctrine/dbal/pull/4132', + 'AbstractPlatform::fixSchemaElementName is deprecated with no replacement and removed in DBAL 3.0' + ); + if (strlen($schemaElementName) > 30) { // Trim it return substr($schemaElementName, 0, 30); diff --git a/lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php b/lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php index 67dff2c6b10..48a36a77692 100644 --- a/lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php +++ b/lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php @@ -13,6 +13,7 @@ use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\TransactionIsolationLevel; +use Doctrine\Deprecations\Deprecation; use InvalidArgumentException; use function array_merge; @@ -72,6 +73,12 @@ public function appendLockHint($fromClause, $lockMode) */ public function fixSchemaElementName($schemaElementName) { + Deprecation::trigger( + 'doctrine/dbal', + 'https://github.com/doctrine/dbal/pull/4132', + 'AbstractPlatform::fixSchemaElementName is deprecated with no replacement and removed in DBAL 3.0' + ); + $maxIdentifierLength = $this->getMaxIdentifierLength(); if (strlen($schemaElementName) > $maxIdentifierLength) {