Skip to content

Commit

Permalink
Fix deprecation layer in Table
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 5, 2023
1 parent 9a747d2 commit aadddd5
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 aadddd5

Please sign in to comment.