summaryrefslogtreecommitdiff
path: root/core/libraries/ORM_MPTT.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-05 09:42:47 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-05 09:42:47 +0000
commitae00f739445717885e2fc82e241bae38b7e58d44 (patch)
tree96feb40e2ffbaa61a46500288d3e7a8fe831d155 /core/libraries/ORM_MPTT.php
parente35c154414ac73788645666b3e4e71722706c6cd (diff)
* Add thumbnail and resize dimensions to the item table and use them
properly in the theme. * Move thumbnail and resize generation down into the model for consistency. * Add a sample thumbnail for albums * Fix a bug in the ORM to clear the cache when we reload an object. * Add Kohana docs to the scaffold.
Diffstat (limited to 'core/libraries/ORM_MPTT.php')
-rw-r--r--core/libraries/ORM_MPTT.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php
index 3ce5e3e4..83190d4a 100644
--- a/core/libraries/ORM_MPTT.php
+++ b/core/libraries/ORM_MPTT.php
@@ -45,6 +45,7 @@ class ORM_MPTT_Core extends ORM {
/**
* Add this node as a child of the parent provided.
*
+ * @chainable
* @param integer $parent_id the id of the parent node
* @return ORM
*/
@@ -113,6 +114,13 @@ class ORM_MPTT_Core extends ORM {
return $this->children;
}
+ function reload() {
+ $this->parent = null;
+ $this->parents = null;
+ $this->children = null;
+ return parent::reload();
+ }
+
/**
* Grow this node's space enough to make room for 1 or more new nodes.
*