summaryrefslogtreecommitdiff
path: root/core/libraries/ORM_MPTT.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries/ORM_MPTT.php')
-rw-r--r--core/libraries/ORM_MPTT.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php
index 411afe44..37789156 100644
--- a/core/libraries/ORM_MPTT.php
+++ b/core/libraries/ORM_MPTT.php
@@ -114,8 +114,7 @@ class ORM_MPTT_Core extends ORM {
*/
function parent() {
if (!isset($this->parent)) {
- $this->parent =
- ORM::factory($this->model_name)->where("id", $this->parent_id)->find();
+ $this->parent = model_cache::get($this->model_name, $this->parent_id);
}
return $this->parent;
}