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.

Data Model Questions /

Datastore design - history & archival, object versions


Reply


310 Views

Avatar
zard

Community Member, 24 Posts

20 September 2013 at 3:29am

Hi,

I am developing an extension to build custom itineraries. The idea is that user picks from a list of destinations and this is then added to the itinerary.

I am now solving the problem of what happens to historical itineraries if a destination is modified or deleted? Ideally, once the itinerary is complete, I would like to "freeze" the destination object and make a link to that version from the itinerary. Then, if a destination is removed or modified, the original itinerary still shows the information when it was all valid.

My thinking is to use Versioned dataextension, however, does this also deal with deletions?

Versioned link: http://api.silverstripe.org/3.0/class-Versioned.html