Thank you the_woodsman for the pointer. I read the article on Bakery (btw, it's entitled HABTM Add & Delete Behavior) However since this is an 'age-old' problem as noted in article, I am wondering if the the core has been updated to deal with the issue; Or do I still have to implement some workaround ?
On Dec 18, 8:33 am, the_woodsman <[EMAIL PROTECTED]> wrote: > Off the top of my head, > > I seem to remember someone implemented a behaviour to handle this? > Maybe Im going crazy. > Check the Bakery.... > > On Dec 18, 9:12 am, zonium <[EMAIL PROTECTED]> wrote: > > > This 'issue' was discussed long > > ago:http://groups.google.com/group/cake-php/browse_thread/thread/acb76273... > > > Basically, when some new entries are added (saved) to the jointable, > > cake attempts to > > > DELETE FROM `jointable` WHERE model1_id = ' xxxx' > > > as a result, all existing associations having model1_id = ' xxxx' in > > jointable are deleted. I don't want that to happen because other > > entities in my application need to reference ids of existing > > associations. > > > I am wondering, in the newer revisions of cake, there is a way to tell > > cake (1.2) to preserve the existing associations (just add new entries > > and leave existing entries untouched)? > > > Thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---