nested-sets
Rails 3 - Awesome Nested Set - Comment.rebuild! - Results in a ERROR
I\'m using the awesome_nested_set rails 3 fork here: https://github.com/FreakyDazio/awesome_nested_set[详细]
2023-02-13 10:05 分类:问答How to get Parent id of node in doctrine nested set
I have the following code : $treeObject = Doctrine_Core::getTable(\'Category\')->getTree(); $rootColumnName = $treeObject->getAttribute(\'rootColumnName\');[详细]
2023-02-13 08:30 分类:问答Rails - Acts as nested - Enforcing a Max Level
I\'m currently using the gem \'nested_set\' for comment threading. What I want to do is prevent the comment level from going more than 2 levels deep. What I tired doing was something like this:[详细]
2023-02-11 19:05 分类:问答Can a nested set have duplicate child objects or multiple parent_id/root/nodes?
Can a nested set have duplicate child objects or multiple parent_id/root/nodes? For instance, I want to create an开发者_JAVA百科 application that can manage parts and equipment.However, a specific eq[详细]
2023-02-11 08:01 分类:问答How do I return records associated to a list of children of a nested set?
Rails version 3.0.3, I am new to rails, but been in webdev for a long time. I am using awesome nested set.[详细]
2023-02-10 15:04 分类:问答SQL - nested set model - how do I find the deepest parents (not leaf nodes) of each branch
Given a tree like this: A----B---------C----D E----FG H I need to find C and E (the two deepest nodes of each unique branch; A-C and A-E)[详细]
2023-02-09 23:55 分类:问答Which Hierarchical model should I use? Adjacency, Nested, or Enumerated?
I have a table which contains a location of all geographical locations in the world and their relationships.[详细]
2023-02-07 20:37 分类:问答How do you convert a parent-child (adjacency) table to a nested set using PHP and MySQL?
I\'ve spent the last few hours trying to find the solution to this question online.I\'ve found plenty of examples on how to convert from nested set to adjacency... but few that go the other way around[详细]
2023-02-04 11:01 分类:问答Looking for effecient way to store nested data with hibernate
I\'ve been trying to find an efficient way to represent nested data i开发者_如何学Gon java/hibernate.My initial solution was a parent/child list with a self referencing join, but there are obvious pit[详细]
2023-02-02 13:22 分类:问答Nested Set indices & performance
I\'m having some troubles understanding what indices to use on a Nested-Set model. The query is: SELECT `node`.`id`,(COUNT(parent.id) - 1) AS `depth`,`name` FROM `categories` AS `parent`[详细]
2023-01-30 12:36 分类:问答