continue;
}
- $affects = array();
-
- $all_links = $GLOBALS['_DB_DATAOBJECT']['LINKS'][$this->_database];
-
- foreach($all_links as $tbl => $links) {
- foreach($links as $col => $totbl_col) {
- $to = explode(':', $totbl_col);
- if ($to[0] != $this->tableName()) {
- continue;
- }
-
- $affects[$tbl .'.' . $col] = true;
- }
- }
-
unset($d['_table']);
$table->setFrom($d);
- print_R($affects);exit;
+ /*
+ * need to use the old id
+ */
+ $table->id = $d['id'];
+ $table->sequenceKey(false,false);
+
+ $table->insert();
}
- print_R($log);exit;
-
+ $roo->jok('RESTORE');
}
}