diff options
-rw-r--r-- | modules/tag/models/tag.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php index d086013d..c0e94f29 100644 --- a/modules/tag/models/tag.php +++ b/modules/tag/models/tag.php @@ -34,7 +34,10 @@ class Tag_Model extends ORM { } else if ($function == "children_count") { return $this->count; } else if ($function == "parents") { - return ORM::factory("item", 1); + // Need to return as an ORM_Iterator as opposed to just the model. + return ORM::factory("item") + ->where("id", 1) + ->find_all(); } else { return parent::__call($function, $args); } |