mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-22 01:19:54 -04:00
Stop using MY_ORM::original(). It's got very odd semantics and we are
not capturing all cases for setting and resetting $original, which leads to some weird and hard to reproduce behavior. Instead, if we need the original just reload it from the database. This may result in a somewhat excessive load in places, but we'll have to fix that in a later optimization pass.
This commit is contained in:
@@ -139,6 +139,7 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
|
||||
|
||||
try {
|
||||
$item->name = $item2->name;
|
||||
print "SAVE\n";
|
||||
$item->save();
|
||||
} catch (ORM_Validation_Exception $e) {
|
||||
$this->assert_true(in_array("conflict", $e->validation->errors()));
|
||||
|
||||
Reference in New Issue
Block a user