> 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  = array('ParentTask'
=>array('className'=>'Task','foreignKey'=>'task_id'));
var $hasMany    = array('ChildTask' =>
array('className'=>'Task','foreignKey'=> 'task_id'));

hth

jon

-- 


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to