diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-21 19:05:53 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-21 19:05:53 -0800 |
commit | b278f9680c7afd7de6e7e9a64a724d87b6e04c93 (patch) | |
tree | e11db912c6a857bedd03754c595fe9b74f986946 /modules/gallery | |
parent | 1e35cf28eef8d88e8e5c611db108667526a0767b (diff) |
Can't call ORM_MPTT::move_to() externally, so call Item_Model::save() instead.
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/tests/ORM_MPTT_Test.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/tests/ORM_MPTT_Test.php b/modules/gallery/tests/ORM_MPTT_Test.php index 1ffe1c57..8c850a86 100644 --- a/modules/gallery/tests/ORM_MPTT_Test.php +++ b/modules/gallery/tests/ORM_MPTT_Test.php @@ -66,7 +66,8 @@ class ORM_MPTT_Test extends Gallery_Unit_Test_Case { $album1_2->reload(); $album1_1_1->reload(); - $album1_1_1->move_to($album1_2); + $album1_1_1->parent_id = $album1_2->id; + $album1_1_1->save(); $album1_1->reload(); $album1_2->reload(); |