Merge pull request #158 from Aatch/testing

Allowed the fixture to overwrite the LastEdited field on an object
This commit is contained in:
Sam Minnée 2012-01-09 18:58:43 -08:00
commit 89647d76e7

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