$restored[$d['_table']] = array();
}
+ $restored[$d['_table']][] = $d['id'];
+
$table = DB_DataObject::factory($d['_table']);
if (!is_a($table,'DB_DataObject')) {
unset($d['_table']);
$table->setFrom($d);
+
+ /*
+ * need to use the old id
+ */
$table->id = $d['id'];
$table->sequenceKey(false,false);
- $table->insert();
-
+ $table->insert();
}
- print_R($restored);exit;
- $roo->jok('RESTORE');
+ $roo->jok('RESTORE');
}
}