RE: How do I circumvent the default HABTM deletion behaviour

2011-03-01 Thread Krissy Masters
rom: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of adam_g2000 Sent: Tuesday, March 01, 2011 9:05 PM To: CakePHP Subject: Re: How do I circumvent the default HABTM deletion behaviour Hi Krissy, Thanks for your response, I think my question might have been badly worded. T

Re: How do I circumvent the default HABTM deletion behaviour

2011-03-01 Thread adam_g2000
Hi Krissy, Thanks for your response, I think my question might have been badly worded. The join table has nothing more in it than the two id fields. I guess I don't want to circumvent cakePHP, I'm happy to let it do its thing but I want it to rewrite the information it erases. It wipes all, but

RE: How do I circumvent the default HABTM deletion behaviour

2011-03-01 Thread Krissy Masters
My guess, and only a guess. I have not looked at the code under the hood. But: Say you have 15 records for 1 User saved. Now User goes back to change something say change 1 record -> save How does the db know which record your altering? You would need to grab all current records already saved and