hi sorry bout the two threads this one just developed into an
overlapping one unfortunately, i am not trying to implement access
control at this point.

What i want is a system where you can view a module and see the
associated users and their roles within that module.
Same goes if i view the user information i would want to see what role
he has in what modules.

Therefore if i am correct (im still trying to wrap my head around the
association concepts and how to design the associated tables):

User hasAndBelongsToMany Roles

Module hasAndBelongsToMany Roles

User hasAndBelongsToMany Modules
Modules hasAndBelongsToMany Users

Thus i would like to know how to structure my join tables, as i
understand i would have to use:

modules_roles
modules_users
roles_users

so id like to know if these associations and join tables would enable
me to accomplish my goals as described above. thanks


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