Stop using MY_ORM::original()

This commit is contained in:
Bharat Mediratta
2010-01-20 22:55:22 -08:00
parent f0780486ee
commit b0ff4418d2
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ class Group_Model extends ORM implements Group_Definition {
module::event("group_created", $this);
} else {
// Updated group
$original = clone $this->original();
$original = ORM::factory("group")->where("id", "=", $this->id)->find();
parent::save();
module::event("group_updated", $original, $this);
}

View File

@@ -96,7 +96,7 @@ class User_Model extends ORM implements User_Definition {
module::event("user_created", $this);
} else {
// Updated user
$original = clone $this->original();
$original = ORM::factory("user")->where("id", "=", $this->id)->find();
parent::save();
module::event("user_updated", $original, $this);
}