@@ 1722-1723 (lines=2) @@ | ||
1719 | foreach ( $other_tables as $ot ) { |
|
1720 | ||
1721 | //first check if we've got the foreign key column here. |
|
1722 | if ( isset( $delete_object[$ot->get_fully_qualified_fk_column()] ) ) |
|
1723 | $deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_fk_column()]; |
|
1724 | ||
1725 | //wait! it's entirely possible that we'll have a the primary key for this table in here if it's a foreign key for one of the other secondary tables |
|
1726 | if ( isset( $delete_object[$ot->get_fully_qualified_pk_column()] ) ) |
|
@@ 1726-1727 (lines=2) @@ | ||
1723 | $deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_fk_column()]; |
|
1724 | ||
1725 | //wait! it's entirely possible that we'll have a the primary key for this table in here if it's a foreign key for one of the other secondary tables |
|
1726 | if ( isset( $delete_object[$ot->get_fully_qualified_pk_column()] ) ) |
|
1727 | $deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_pk_column()]; |
|
1728 | ||
1729 | //finally, it is possible that the fk for this table is found in the fully qualified pk column for the fk table, so let's see if that's there! |
|
1730 | if ( isset( $delete_object[$ot->get_fully_qualified_pk_on_fk_table()]) ) |
|
@@ 1730-1731 (lines=2) @@ | ||
1727 | $deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_pk_column()]; |
|
1728 | ||
1729 | //finally, it is possible that the fk for this table is found in the fully qualified pk column for the fk table, so let's see if that's there! |
|
1730 | if ( isset( $delete_object[$ot->get_fully_qualified_pk_on_fk_table()]) ) |
|
1731 | $deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_pk_column()]; |
|
1732 | } |
|
1733 | } |
|
1734 | } |