$affects = array();
$all_links = $x->databaseLinks();
-
+
foreach($all_links as $tbl => $links) {
foreach($links as $col => $totbl_col) {
$to = explode(':', $totbl_col);
// echo '<PRE>';print_r($affects);exit;
// DB_Dataobject::debugLevel(1);
+
+
+
$bits = array_map(function($v) { return (int)$v; } , explode(',', $req['_delete']));
$chk->_match_key = $ka[1];
$match_ar[] = clone($chk);
continue;
- }
-
+ }
}
$has_beforeDelete = method_exists($xx, 'beforeDelete');
// before delte = allows us to trash dependancies if needed..
$match_total = 0;
-
+
if ( $has_beforeDelete ) {
if ($xx->beforeDelete($match_ar, $this) === false) {
$errs[] = "Delete failed ({$xx->id})\n".
// refetch affects..
$match_ar = array();
-
foreach($affects as $k=> $true) {
$ka = explode('.', $k);
$chk = DB_DataObject::factory($ka[0]);