I believe that would be the best approach. Then you would just have to
do one save, using the joining table for the current record. And of
course using that method, there could be any number of fields in the
joining table.

On Mar 6, 8:23 am, "Grant Cox" <[EMAIL PROTECTED]> wrote:
> To have more than just the two foreign ids, then you need a join model
> in the middle.  There was word that the HABTM relationship will be
> extended to allow this to be through a model, but I don't think this
> is implemented yet.  In the meantime, you need to make the middle
> model and associate it yourself - ie:
>
> Profile hasMany EventProfile
> Event hasMany EventProfile
> EventProfile belongsTo Profile,Event
>
> this EventProfile will be a new model, which uses your join table, and
> can have whatever additional data it likes.  You will then need to
> manage creating/removing these joins in your application yourself.


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