On 7/26/07, rtanz <[EMAIL PROTECTED]> wrote: > > i have understood the manual's part on associations but there there > are only two models involved while in my case there are more than two, > like module associated to user associated to role associated to task, > this is what i cannot understand how to do
Let's see... Users hasOne Roles Roles hasMany Tasks Roles belongsTo Users Tasks belongTo Roles Modules hasMany Users Users hasManyAndBelongsTo Modules (not sure about this one, others will correct me) That should be good for a start. Don't be scared just because the example has only two models. -- Chris Hartjes Senior Developer Cake Development Corporation My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
