Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Archive DataObject


Reply

800 Views

Avatar
micahsheets

22 July 2009 at 3:55am Community Member, 164 Posts

I have a DataObject that after a time needs to be archived. The way I had thought of doing this is just moving the table row for the object into another database table kind of like how versions or the live and draft works. However I don't know how those things are accomplished. Would I create a new DataObject and copy all the data from the old one to the new ArchiveDataObject? Or can I just cast on to another?

Is there a mysql command for moving table rows from one table to another?