diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-27 22:34:11 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-27 22:34:11 -0800 |
commit | 4b32a71afc7650fe7bdd02ba384c8914f60538f3 (patch) | |
tree | 66fea701b9324c1de79c31c548b643f331566223 /modules/user/models | |
parent | cfbbf9ef606094868ccbd25ccf65e1a6f610528b (diff) |
Convert back to using ORM::factory(..., $id) instead of calling where().
Diffstat (limited to 'modules/user/models')
-rw-r--r-- | modules/user/models/group.php | 2 | ||||
-rw-r--r-- | modules/user/models/user.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/models/group.php b/modules/user/models/group.php index 85114ede..851e72e6 100644 --- a/modules/user/models/group.php +++ b/modules/user/models/group.php @@ -55,7 +55,7 @@ class Group_Model extends ORM implements Group_Definition { module::event("group_created", $this); } else { // Updated group - $original = ORM::factory("group")->where("id", "=", $this->id)->find(); + $original = ORM::factory("group", $this->id); parent::save(); module::event("group_updated", $original, $this); } diff --git a/modules/user/models/user.php b/modules/user/models/user.php index 7c97bae7..78c31047 100644 --- a/modules/user/models/user.php +++ b/modules/user/models/user.php @@ -99,7 +99,7 @@ class User_Model extends ORM implements User_Definition { module::event("user_created", $this); } else { // Updated user - $original = ORM::factory("user")->where("id", "=", $this->id)->find(); + $original = ORM::factory("user", $this->id); parent::save(); module::event("user_updated", $original, $this); } |