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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Archive DataObject

Go to End



Community Member, 165 Posts

22 July 2009 at 3:55am

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?