Try this:

var $actAs = array('Tree' => array('parent_id' => '[new_field_name]'));

Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573

On 13 Nov 2009, at 15:12, Aldo wrote:

> I already did, but was not able to find an answer to my question.
> In the Tree behavior documentation there is only mentioned tu use the
> filed name "parent_id", but not how to change this setting.
> 
> 
> On 13 Nov., 15:56, AD7six <andydawso...@gmail.com> wrote:
>> On 13 nov, 13:46, Aldo <abombe...@gmail.com> wrote:
>> 
>>> Hello,
>> 
>>> I have already a table structure for a tree, where the field
>>> "parent_id" has another name. As other functions depend on this name I
>>> need to tell Cakes's Tree Behavior in which field it has to look for
>>> the parend ID.
>> 
>>> Any idea how I can achive this?
>> 
>>> Thanks!
>>> Aldo
>> 
>> I'd recommend reading about the Tree behavior 
>> here:http://book.cakephp.org/view/91/Tree
>> 
>> hth,
>> 
>> AD
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=.
> 
> 

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.


Reply via email to