|
@@ 1717-1718 (lines=2) @@
|
| 1714 |
|
foreach ( $other_tables as $ot ) { |
| 1715 |
|
|
| 1716 |
|
//first check if we've got the foreign key column here. |
| 1717 |
|
if ( isset( $delete_object[$ot->get_fully_qualified_fk_column()] ) ) |
| 1718 |
|
$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_fk_column()]; |
| 1719 |
|
|
| 1720 |
|
//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 |
| 1721 |
|
if ( isset( $delete_object[$ot->get_fully_qualified_pk_column()] ) ) |
|
@@ 1721-1722 (lines=2) @@
|
| 1718 |
|
$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_fk_column()]; |
| 1719 |
|
|
| 1720 |
|
//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 |
| 1721 |
|
if ( isset( $delete_object[$ot->get_fully_qualified_pk_column()] ) ) |
| 1722 |
|
$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_pk_column()]; |
| 1723 |
|
|
| 1724 |
|
//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! |
| 1725 |
|
if ( isset( $delete_object[$ot->get_fully_qualified_pk_on_fk_table()]) ) |
|
@@ 1725-1726 (lines=2) @@
|
| 1722 |
|
$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_pk_column()]; |
| 1723 |
|
|
| 1724 |
|
//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! |
| 1725 |
|
if ( isset( $delete_object[$ot->get_fully_qualified_pk_on_fk_table()]) ) |
| 1726 |
|
$deletes[$ot->get_fully_qualified_pk_column()][] = $delete_object[$ot->get_fully_qualified_pk_column()]; |
| 1727 |
|
} |
| 1728 |
|
} |
| 1729 |
|
} |