To: Olivier Thanks your reply and solution. Ha ha, I am glad I found a bug!
Cipher On 10月11日, 上午4時17分, Olivier Mansour <[EMAIL PROTECTED]> wrote: > Le 8 oct. 07 13:37, Cipher Chien a crit : > > > > > > > Hi, > > > Does any one know how to use retrieveFirstChild() method to get node > > object? > > > My code in action: > > $this->rootId = 326; > > $catRoot = Doc02CatPeer::retrieveByPK($this->rootId); > > $this->cats = $catRoot->getDescendants(); // this is ok, can get > > current data > > > $this->firstNode = $catRoot->retrieveFirstChild(); // It got > > error message, > > > the error message in view model: "Fatal error: Call to a member > > function getId() on a non-object in...." > > > My Nested Plugin version is 0.9.1-beta. > > > Any help and suggestions would be really appreciated. > > strange > > I guess it's a plugin bug. > > If getDescendants or getChildren is working, you can maybe use > array_shift to extract the first element, thats will be the firstChild. > > Olivier > > > > -- > Olivier MANSOUR http://www.clever-age.com > Clever Age Lyon - conseil en architecture technique > GSM: +33 6 11 03 23 77 T l: +33 4 78 89 46 45 > > Clever Age vous invite ses petits d jeuners du > Jeudihttp://www.clever-age.com/actualites/petits-dejeuners/ > > Clever Age recrute sur Paris, Lyon et > Bordeauxhttp://www.clever-age.com/societe/nous-rejoindre/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---