Skip to content

Commit

Permalink
Merge 3.6.x into 3.7.x (#6095)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Jul 15, 2023
2 parents 428f7b1 + 1c462ee commit 35bfb31
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
4 changes: 3 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,11 +679,13 @@ This method is unused by the DBAL since 2.0.

## Deprecated `Type::getName()`

This will method is not useful for the DBAL anymore, and will be removed in 4.0.
This method is not useful for the DBAL anymore, and will be removed in 4.0.
As a consequence, depending on the name of a type being `json` for `jsonb` to
be used for the Postgres platform is deprecated in favor of extending
`Doctrine\DBAL\Types\JsonType`.

You can use `Type::getTypeRegistry()->lookupName($type)` instead.

## Deprecated `AbstractPlatform::getColumnComment()`, `AbstractPlatform::getDoctrineTypeComment()`,
`AbstractPlatform::hasNative*Type()` and `Type::requiresSQLCommentHint()`

Expand Down
2 changes: 1 addition & 1 deletion src/Schema/AbstractSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ protected function doListTables(): array
*/
public function listTableDetails($name)
{
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5595',
'%s is deprecated. Use introspectTable() instead.',
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/DB2SchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function listTables()
*/
public function listTableDetails($name)
{
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5595',
'%s is deprecated. Use introspectTable() instead.',
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/MySQLSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function listTables()
*/
public function listTableDetails($name)
{
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5595',
'%s is deprecated. Use introspectTable() instead.',
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/OracleSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function listTables()
*/
public function listTableDetails($name)
{
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5595',
'%s is deprecated. Use introspectTable() instead.',
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/PostgreSQLSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function listTables()
*/
public function listTableDetails($name)
{
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5595',
'%s is deprecated. Use introspectTable() instead.',
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/SQLServerSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function listTables()
*/
public function listTableDetails($name)
{
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5595',
'%s is deprecated. Use introspectTable() instead.',
Expand Down
3 changes: 2 additions & 1 deletion src/Types/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ abstract public function getSQLDeclaration(array $column, AbstractPlatform $plat
/**
* Gets the name of this type.
*
* @deprecated this method will be removed in Doctrine DBAL 4.0.
* @deprecated this method will be removed in Doctrine DBAL 4.0,
* use {@see TypeRegistry::lookupName()} instead.
*
* @return string
*/
Expand Down

0 comments on commit 35bfb31

Please sign in to comment.