I think a dump method would be very great to quickly debug what is inside the trees... Even with a basic print_r style
----- Message d'origine ---- De : Fabian Lange <[EMAIL PROTECTED]> À : [email protected] Envoyé le : Jeudi, 22 Mars 2007, 17h47mn 08s Objet : [symfony-devs] Re: sfActAsNestedSetBehavior questions, comments, & bug? <!-- _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue;text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue;text-decoration:underline;} span.EmailStyle18 {font-family:Arial;color:navy;} _filtered {margin:70.85pt 70.85pt 2.0cm 70.85pt;} div.Section1 {} --> Hi Tristan, once again, great work! I dont need a dump method. It anyway would be always to specific, as the way you would want to have the tree printed usually differs. I take the chance to point out a second time that I would really like to see a way to store the tree path/level in a column, as this is very db heavy if you need to get it for each visible node .: Fabian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tristan Rivoallan Sent: Donnerstag, 22. März 2007 17:08 To: [email protected] Subject: [symfony-devs] Re: sfActAsNestedSetBehavior questions, comments, & bug? Hi, On 3/21/07, Peter Van Garderen <[EMAIL PROTECTED]> wrote: i just released sfPropelActAsNestedSetBehaviorPlugin-0.8.1 which fixes the makeRoot() and getDescendants() issues you mentionned. Here's the changelog : * fixed #1480 : non-abstracted column name (paul markovitch) * fixed bug in `getStubFromPeer()` * `makeRoot()` should accept non new objects (peter van garderen) * `getDescendants()` should not try to get descendants if node is a leaf (peter van garderen) * updated unit tests * enabled syntax highlighting in README I am sorry I can't be more specific than that. Maybe it is just a problem specific to my own test data. It doesn't sound like anyone else has had this problem. i'll produce unit tests specific to this issue to see if there really is a problem and i'll provide a fix for 0.9.0 if necessary. In the meanwhile though I in the process of setting up and testing edge-adjacency as an alternate hierarchical model for my application. http://www.artfulsoftware.com/mysqlbook/sampler/mysqled1ch20.html#adjacency_ list_model indeed, this should better feat with your needs. Why not make it into a plugin ? ;) finally, here's a little poll : would you (nested set plugin users) be interested in having a dumpTree() method (some kind of nested set oriented var_dump) for debugging purposes ? i've coded it already but i don't know if it can prove useful or not... ++ tristan ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
