Of-course there is :)

The trick to getting some control over the join table is the "with"
key.
http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM
This tells Cake to use your class file for the join model and any
methods and settings in it.

Mariano also has a good write-up of how to get the join table working
as a "real" model.
http://marianoiglesias.com.ar/cakephp/modelizing-habtm-join-tables-in-cakephp-1-2-with-and-auto-with-models/

And finally Teknoid has aa very short and clear post about how to
actually save the extra data.
http://teknoid.wordpress.com/2008/09/24/saving-extra-fields-in-the-join-table-for-habtm-models/





On Jan 18, 9:36 am, Ernesto <e.fanz...@gmail.com> wrote:
> Hello.
>
> as the title says.... is there any way to add/update additional fields
> in HABTM's join table?
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to