http://groups.google.com/group/cake-php/search?group=cake-php&q=hasAndBelongsToMany+join+table+nate+through

http://groups.google.com/group/cake-php/search?group=cake-php&q=hasAndBelongsToMany+join+table+nate


On Feb 23, 3:25 pm, "nickgust" <[EMAIL PROTECTED]> wrote:
> Hey gang,
>
> been doing php for years but brand new to CakePHP. I am stuck and need
> a nudge.
>
> I have a table with Groups. The a table with Admins. I also have a
> Admins_Groups table and with the proper hasAndBelongsToMany in place
> the scaffolding sees the groups an admin is admin for and what admins
> are admins for a group. All is fine. But I need to have a super-admin
> be able to assign and remove admins from the groups. I cannot figure
> out how to save this. I have read the manual and tried a few tests,
> but no luck.
>
> Please assume that the super admin would select the group first. On
> this page for group "A" he would select one or many admins from a
> multi select  list and save. I also need to be able to remove admins.
>
> First I cant figure out how the save code should look and further
> more, what is the admin removes an existing admin from a group, doe
> Cake remove that relationship from the "admins_groups" tabel? How
> would it know to?
>
> Hope you all can help, this stuff rocks big time.
>
> Nick


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