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:

Data Model Questions /

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

Versioning without stage


Go to End


624 Views

Avatar
zard

Community Member, 25 Posts

30 September 2013 at 11:30pm

Edited: 30/09/2013 11:45pm

Hi,

For a travel builder, I need to provide history for each of the object's contents. In order to achieve this, I've looked into the Versioned object and it seems to be doing exactly what I need!

However, I have absolutely no use for the Stage/Live distinction and I can see it creating confusion.

Is there any way to use the Versioned extension only to provide previous versions without the addition of a separate stage for object staging?

I would effectively like something like:

Class Event extends DataObject{
    static $extensions = array(
    "Versioned('Only_one')"
);