On Jul 15, 4:52 pm, Defranco <ericofra...@gmail.com> wrote:
> Hi,
>
> Myjointableadditional data get lost when I update any of the 2
> models that has HABTM relation:
>
> I have 2 models that has HABTM relation and thejointablebetween
> these has additional data.
>
> The problem is that when I edit and update any record on first model,
> it willdeleteand insertjointablerecords and I loose my additional
> data onjointable.
>
> How I solve it? I alread tried the HABTM 'with' tag and changed the
> 'unique' tag too, but no success.
>
> Kind regards,
>
> Franco
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Saturday, August 1, 2009
Re: HABTM with additional data scaffold update problem.
maybe scaffolding changes the "unique" attribute on the fly
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment