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

Fixtures and LastEdited

Go to End



Community Member, 1 Post

9 January 2012 at 5:23pm

I am trying to run some Unit Tests, and I am using the LastEdited date to infer some information, However setting it in the fixture file doesn't seem to do anything, it just sets it to the current time, my initial guess is that it adds the LastEdited field in, then promptly overwrites it because the object has been edited.

I was wondering if there is a way around this behaviour, or will I have to dig into the sapphire code?