Thanks for the reply mscdex
I think if you do it the way I posted (put the field in Tag) you don't
need bindModel at all. You can also use save() and not saveAll().
On Mar 5, 2:28 am, mscdex msc...@gmail.com wrote:
On Mar 4, 6:52 pm, Omi omi.chowdh...@gmail.com wrote:
The correct way
I've searched through the groups and web, but I can't find any mention
of SAVING to the model, only reading from it.
Some example Models:
Recipes HABTM Tags
The recipies_tags table has an extra column which is tagger_id
I have tried setting the value in $this-data before the save but this
the CakePHP Book with saving and retrieving join
table data would be very helpful, as this information is hard to find
On Mar 4, 10:30 pm, Omi omi.chowdh...@gmail.com wrote:
I've searched through the groups and web, but I can't find any mention
of SAVING to the model, only reading from it.
Some
'RecipiesTag.user_id' = $this-data['User']
['id']
should be
'RecipiesTag.recipe_id' = $this-data['Recipe']
['id']
On Mar 4, 10:30 pm, Omi omi.chowdh...@gmail.com wrote:
I've searched through the groups and web, but I can't find any mention
of SAVING to the model, only reading from it.
Some