gabordemooij/redbean — Issue #135: Tree management in RedBean
Author: abxccd
Created: 2012-03-07 23:31:38+00:00
State: open

I have been playing around with trees lately. I have used this part of the manual as a starting point: http://www.redbeanphp.com/manual/trees.

I have found several problems though:

* Each parent can only have 1 child.
* A seperate query is required to find each child, so an item with 5 childs, would require 5 queries.

I then discovered that RedBean used to have a TreeManager, which is now bundled with RedBean plus. However, TreeManager is now marked as obselete, and it also requires RedBean_CompatManager, which I believe has also been removed.

Are there any plans to reintroduce modeling of hierachical relationships? In particular, multiple childs per parent and reducing the amount of SQL queries.