This should get you started: http://teknoid.wordpress.com/2008/09/24/saving-extra-fields-in-the-join-table-for-habtm-models/
On Oct 4, 12:28 pm, Andre <[EMAIL PROTECTED]> wrote: > Hi all, > I saw "Storing additional data on join > table"https://trac.cakephp.org/ticket/828. > Having, two tables associated with HABTM: tags, posts, posts_tags > posts_tags{ post_id,tag_id,weight } > > Can anyone help me showing how to use it, in the Post 's add or Post > 's edit view in to populate "weight" field in posts_tags.weight > column? > > I am thinking to use Checkbox options to select related > posts_tags.weight, And input text to enter weight. > > I've been struggling with this issue for few weeks with HABTM where > the join table record is deleted and reinserted everytime, thus the > posts_tags.weight column were never saved? > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
