Re: Tree structures

2006-08-17 Thread Wilm
Hi John, I don't have my computer here, but I will come back to you later today when I get back at my computer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Tree structures

2006-08-17 Thread Jon Bennett
I'm currently working on a new project: It has a model named Task, which has two relations: belongsTo = Task hasMany = Task I think you need something like: var $belongsTo = array('Parent'Task =array('className'='Page','foreignKey'='page_id')); var $hasMany= array('SubTask' =

Re: Tree structures

2006-08-17 Thread Jon Bennett
I think you need something like: var $belongsTo = array('Parent'Task =array('className'='Page','foreignKey'='page_id')); var $hasMany= array('SubTask' = array('className'='Page','foreignKey'= 'page_id')); that'll teach me to copy and paste to hastlely! try: var $belongsTo =

Re: Tree structures

2006-08-17 Thread Wilm
Thanks for the reply, will try this. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Tree structures

2006-08-16 Thread John David Anderson (_psychic_)
On Aug 16, 2006, at 1:55 PM, Wilm wrote: Hello, First I'd like to thank the developers on the CakePHP project. It's a great framework and it made things a lot easier. I got my new news system up and running in no time and my boss was real happy with it. The old news system was a big mess