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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

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

Versioning without stage


Go to End


846 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')"
);