Allowed the fixture to overwrite the LastEdited field on an object

This commit is contained in:
James Miller 2012-01-10 13:24:31 +13:00
parent 34cc18e66b
commit bf2ba121bd

View File

@ -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);
}
}
}