>From wiki, page on understanding associations:

...[Cake will save the correct values for the join table if your form passes the proper field value. Assume, Post hasAndBelongsToMany Tag. You have a join table: posts_tags, with post_id and tag_id as the columns. If you are saving from PostsController::add(), the proper form field name should be data['Tag']['Tag'][] (to clarify: data['AssociatedModelName']['AssociatedModelName'][]) ] ...

Is this still valid?



On 6/26/06, bkuhns || (crash) < [EMAIL PROTECTED]> wrote:

I'm no authority on this, but I do recall seeing this question in the
IRC chatroom and I believe qwoo said you have to do the multiple save()
approach.




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

Reply via email to