yes you can just use something like this
var $hasMany = array('ChildGenre' =>
array('className'=>'Genre','foreignKey'   => 'parent_genre_id'));
        var $belongsTo = array('ParentGenre' => array('className'=>'Genre'));

should get you started

On 11/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Thank you.  The link helped a lot.  Now the only question i have is can
> i have parent genres and sub-genres.  I thought that i read somewhere
> that you can setup your tables with a parent_id field.  Any suggestions?
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

--~--~---------~--~----~------------~-------~--~----~
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