diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-27 12:10:37 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-27 12:10:37 -0800 |
commit | 31bb09c9b6d420cf77cec47599e937d733652a06 (patch) | |
tree | d81bc1e24c2f074d725b4321f85a39ab2cef4fc5 | |
parent | 55f9408d509b6ee34e62948d311d6d963e3ffa6d (diff) |
Change ->in(...) ->where('id', 'in', ...)
-rw-r--r-- | modules/tag/models/tag.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php index b2ce9eda..d0d2117c 100644 --- a/modules/tag/models/tag.php +++ b/modules/tag/models/tag.php @@ -108,7 +108,9 @@ class Tag_Model extends ORM { $result = parent::delete(); if ($related_item_ids) { - foreach (ORM::factory("item")->in("id", array_keys($related_item_ids))->find_all() as $item) { + foreach (ORM::factory("item") + ->where("id", "IN", array_keys($related_item_ids)) + ->find_all() as $item) { module::event("item_related_update", $item); } } |