diff --git a/models/CategoryNestedSet.php b/models/CategoryNestedSet.php new file mode 100644 index 000000000..6fa329acc --- /dev/null +++ b/models/CategoryNestedSet.php @@ -0,0 +1,17 @@ +setTableName('category_nested_set'); + $this->hasColumn('id', 'integer', 4, array('primary' => true, 'autoincrement' => true)); + $this->hasColumn('name', 'string', 255, array('notnull' => true)); + + $this->actAs('NestedSet'); + } + + public function setUp() + { + + } +} \ No newline at end of file