[Components] [Tree] Multiple trees in one db table

2008-07-08 Thread Piotrek Karas
Hello there, Would it be possible to use Tree component to store and manage in one db table multiple trees (multiple root nodes)? For example, by adding a special key that would identify records that belong to one tree, or another, for example: id | parent_id | tree_id

[Components] [Tree] Multiple trees in one db table

2008-07-08 Thread Piotrek Karas
Derick Rethans wrote: On Tue, 8 Jul 2008, Piotrek Karas wrote: Would it be possible to use Tree component to store and manage in one db table multiple trees (multiple root nodes)? For example, by adding a special key that would identify records that belong to one tree, or another, for

Re: [Components] [Tree] Multiple trees in one db table

2008-07-08 Thread Derick Rethans
On Tue, 8 Jul 2008, Piotrek Karas wrote: Derick Rethans wrote: On Tue, 8 Jul 2008, Piotrek Karas wrote: Would it be possible to use Tree component to store and manage in one db table multiple trees (multiple root nodes)? For example, by adding a special key that would identify

Re: [Components] [Tree] Multiple trees in one db table

2008-07-08 Thread Piotrek Karas
So why don't just just make one tree where the roots of your trees are basically the first sublevel? Good point! ;) Meanwhile the idea has changed and actually the concept of dynamically created trees might be the best solution, so I think I'm back to the tree component ;) Let you know