> Question about a model.  I'm creating a table like below where
> category_id is a foreign key to the categories table (basically the
> parent id because I'm building a tree in the database in one table).
> I was wondering A) is this a good approach for building categories
> that can be applied to multiple sets of content and B) what would the
> model code look like (i.e. would I use $hasMany
> $hasManyAndBelongsToMany)?

check out 
http://bakery.cakephp.org/articles/view/coding-a-self-join-in-a-cake-application

jb


-- 


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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to