The relationship is already recursive, so you don't need to query it again in your tree. Could you explain what it is you are trying to do?
Ouch, sorry for it,
When you say is already recursive, you mean i can call it with some param to return recursive results?
I want my tree method to return all "content" wich parent_fk as defined, and all its childrens, and childrens of the childrens..., until "depth" is reached.
It does not work because i need to define a new "public var $childrens" for the one in the tree method. If i do it, the "childrens" relationship does not work anymore.
The unique solution i found is to change the name of the Relationship, or the one at the tree function "childrens". Both can't be "childrens". For me it is a shame since they are the same.
(1-2/2)
Subject: Tree Object
Hi all,
I'm triying to create a Tree using a Db Model, lets the code talks
my problem here is that ->childrens is not defined and if I defined it as a public var on the object it overload, in some way my "childrens" have-many association.
I wonder if there is a way to get the tree in this way, using the "childrens" property, or maybe i must create another object property for the tree childrens (wich will be sad) :D
Thanks in advanced
(please forget my english)