Skip to content

Commit 4e673be

Browse files
authored
Merge pull request #6053 from nicolas-grekas/deprec-table
Fix deprecation layer in Table
2 parents 9a747d2 + aadddd5 commit 4e673be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Schema/Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ public function getColumns()
724724
*/
725725
public function getForeignKeyColumns()
726726
{
727-
Deprecation::trigger(
727+
Deprecation::triggerIfCalledFromOutside(
728728
'doctrine/dbal',
729729
'https://github.com/doctrine/dbal/pull/5731',
730730
'%s is deprecated. Use getForeignKey() and ForeignKeyConstraint::getLocalColumns() instead.',
@@ -813,7 +813,7 @@ public function getPrimaryKey()
813813
*/
814814
public function getPrimaryKeyColumns()
815815
{
816-
Deprecation::trigger(
816+
Deprecation::triggerIfCalledFromOutside(
817817
'doctrine/dbal',
818818
'https://github.com/doctrine/dbal/pull/5731',
819819
'%s is deprecated. Use getPrimaryKey() and Index::getColumns() instead.',

0 commit comments

Comments
 (0)