Skip to content

Commit

Permalink
Merge pull request #6053 from nicolas-grekas/deprec-table
Browse files Browse the repository at this point in the history
Fix deprecation layer in Table
  • Loading branch information
derrabus authored Jun 5, 2023
2 parents 9a747d2 + aadddd5 commit 4e673be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Schema/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ public function getColumns()
*/
public function getForeignKeyColumns()
{
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5731',
'%s is deprecated. Use getForeignKey() and ForeignKeyConstraint::getLocalColumns() instead.',
Expand Down Expand Up @@ -813,7 +813,7 @@ public function getPrimaryKey()
*/
public function getPrimaryKeyColumns()
{
Deprecation::trigger(
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5731',
'%s is deprecated. Use getPrimaryKey() and Index::getColumns() instead.',
Expand Down

0 comments on commit 4e673be

Please sign in to comment.