[nycphp-talk] Building trees
(kris)janis p gale
sharpwit at hotmail.com
Sat Oct 19 17:19:32 EDT 2002
actually...
wouldn't it be as simple as querying the tierlevel
of the parent project, and incrementing by one?
> Figuring out the level at the time a Project is saved is simple since I
> have a parent ID, I can walk the tree backwards until I get a 0 ParentID
> ( 0 is not a legal ProjectID in my design ). The number of queries I
> had to do plus one would be the level of this new item.
More information about the talk
mailing list