|
@@ 1781-1782 (lines=2) @@
|
| 1778 |
|
if ( ! empty( $other_tables ) ) { |
| 1779 |
|
foreach ( $other_tables as $ot ) { |
| 1780 |
|
//first check if we've got the foreign key column here. |
| 1781 |
|
if ( isset( $delete_object[ $ot->get_fully_qualified_fk_column() ] ) ) { |
| 1782 |
|
$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_fk_column() ]; |
| 1783 |
|
} |
| 1784 |
|
// wait! it's entirely possible that we'll have a the primary key |
| 1785 |
|
// for this table in here, if it's a foreign key for one of the other secondary tables |
|
@@ 1786-1787 (lines=2) @@
|
| 1783 |
|
} |
| 1784 |
|
// wait! it's entirely possible that we'll have a the primary key |
| 1785 |
|
// for this table in here, if it's a foreign key for one of the other secondary tables |
| 1786 |
|
if ( isset( $delete_object[ $ot->get_fully_qualified_pk_column() ] ) ) { |
| 1787 |
|
$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_pk_column() ]; |
| 1788 |
|
} |
| 1789 |
|
// finally, it is possible that the fk for this table is found |
| 1790 |
|
// in the fully qualified pk column for the fk table, so let's see if that's there! |
|
@@ 1791-1792 (lines=2) @@
|
| 1788 |
|
} |
| 1789 |
|
// finally, it is possible that the fk for this table is found |
| 1790 |
|
// in the fully qualified pk column for the fk table, so let's see if that's there! |
| 1791 |
|
if ( isset( $delete_object[ $ot->get_fully_qualified_pk_on_fk_table() ] ) ) { |
| 1792 |
|
$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_pk_column() ]; |
| 1793 |
|
} |
| 1794 |
|
} |
| 1795 |
|
} |