Hello,

I have MENUS that can have FOLDERS, and each FOLDER can have FOLDERS
too.
How should I design my DB and what kind of relations should i set ?

1)
        MENUS : id
        RELATIONS : id / menu_id / folder_id
        FOLDERS : id / parent_id

                with :
                        menus hasMany relations
                        folders hasMany relations
                        relations belongsTo array(menus, folders)
2)
        MENUS : id
        FOLDERS : id / parent_id / menu_id

                with :
                        menus hasMany folders
                        folders belongsTo menu
                        folders habtm folders

3)
        others ???

i think it is not necessary to have the info about menu for
"subfolder", cause the parent folder already has, and i'm totally lost
on how to do it.

Thanks for help .

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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