|
@@ 1743-1744 (lines=2) @@
|
| 1740 |
|
if ( ! empty( $other_tables ) ) { |
| 1741 |
|
foreach ( $other_tables as $ot ) { |
| 1742 |
|
//first check if we've got the foreign key column here. |
| 1743 |
|
if ( isset( $delete_object[ $ot->get_fully_qualified_fk_column() ] ) ) { |
| 1744 |
|
$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_fk_column() ]; |
| 1745 |
|
} |
| 1746 |
|
// wait! it's entirely possible that we'll have a the primary key |
| 1747 |
|
// for this table in here, if it's a foreign key for one of the other secondary tables |
|
@@ 1748-1749 (lines=2) @@
|
| 1745 |
|
} |
| 1746 |
|
// wait! it's entirely possible that we'll have a the primary key |
| 1747 |
|
// for this table in here, if it's a foreign key for one of the other secondary tables |
| 1748 |
|
if ( isset( $delete_object[ $ot->get_fully_qualified_pk_column() ] ) ) { |
| 1749 |
|
$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_pk_column() ]; |
| 1750 |
|
} |
| 1751 |
|
// finally, it is possible that the fk for this table is found |
| 1752 |
|
// in the fully qualified pk column for the fk table, so let's see if that's there! |
|
@@ 1753-1754 (lines=2) @@
|
| 1750 |
|
} |
| 1751 |
|
// finally, it is possible that the fk for this table is found |
| 1752 |
|
// in the fully qualified pk column for the fk table, so let's see if that's there! |
| 1753 |
|
if ( isset( $delete_object[ $ot->get_fully_qualified_pk_on_fk_table() ] ) ) { |
| 1754 |
|
$deletes[ $ot->get_fully_qualified_pk_column() ][] = $delete_object[ $ot->get_fully_qualified_pk_column() ]; |
| 1755 |
|
} |
| 1756 |
|
} |
| 1757 |
|
} |