mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #158 from Aatch/testing
Allowed the fixture to overwrite the LastEdited field on an object
This commit is contained in:
commit
89647d76e7
@ -228,6 +228,12 @@ class YamlFixture extends Object {
|
||||
}
|
||||
}
|
||||
$obj->write();
|
||||
//If LastEdited was set in the fixture, set it here
|
||||
if (array_key_exists('LastEdited', $fields)) {
|
||||
$manip = array($dataClass => array("command" => "update", "id" => $obj->id,
|
||||
"fields" => array("LastEdited" => $this->parseFixtureVal($fields['LastEdited']))));
|
||||
DB::manipulate($manip);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user