From cd56b25dcc9790c8431d8956dfbbc706e7f2878a Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Fri, 29 Mar 2019 19:19:06 -0700 Subject: [PATCH] Removed DB2SchemaManager::_getPortableForeignKeyRuleDef() --- UPGRADE.md | 4 ++++ lib/Doctrine/DBAL/Schema/DB2SchemaManager.php | 16 ---------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 0024f472d0f..9f6eb81c6a3 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,9 @@ # Upgrade to 3.0 +## BC BREAK `DB2SchemaManager::_getPortableForeignKeyRuleDef()` removed + +The method was used internally and is no longer needed. + ## BC BREAK `AbstractPlatform::get*Expression()` methods no loner accept integer values as arguments The following methods' arguments do not longer accept integer value: diff --git a/lib/Doctrine/DBAL/Schema/DB2SchemaManager.php b/lib/Doctrine/DBAL/Schema/DB2SchemaManager.php index 0a056d3deff..c51023b60a1 100644 --- a/lib/Doctrine/DBAL/Schema/DB2SchemaManager.php +++ b/lib/Doctrine/DBAL/Schema/DB2SchemaManager.php @@ -180,22 +180,6 @@ protected function _getPortableTableForeignKeysList($tableForeignKeys) return parent::_getPortableTableForeignKeysList($foreignKeys); } - /** - * {@inheritdoc} - */ - protected function _getPortableForeignKeyRuleDef($def) - { - if ($def === 'C') { - return 'CASCADE'; - } - - if ($def === 'N') { - return 'SET NULL'; - } - - return null; - } - /** * {@inheritdoc} */