Two tables with multiple relationships
Hello Again Everyone-
I'm having a bit of trouble establishing my databases. To sum up my application, it allows users to make modules which then can be viewed by other users of the creator's choice.
So I have:
User hasMany Module <-- This is where I place the user id number of the creator of the module
Module belongsTo User
User HABTM Module <-- This table is only for those who are allowed to view the module, but don't own it
But I feel that this isn't the right way to do it. How should I implement this?
Is it possible to do this solely in ACL? If so, how?
Thanks to everyone in advance for their help!
-- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home