Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread [EMAIL PROTECTED]
I don't know why HABTM relationships are deleted automatically on a Model::save() in the first place, but is this really necessary for the 'with' relationships too? They are practically standalone models so shouldn't there be an option to preserve the current 'with' relationships? I can unbind()

Re: Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread [EMAIL PROTECTED]
Hey Eric, why don't you just use saveField() in this situation? On Jan 24, 1:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't know why HABTM relationships are deleted automatically on a Model::save() in the first place, but is this really necessary for the 'with' relationships too?

Re: Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread [EMAIL PROTECTED]
yeah that seems like a logical thing to do On Jan 24, 1:30 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey Eric, why don't you just use saveField() in this situation? On Jan 24, 1:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't know why HABTM relationships are deleted

Re: Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread [EMAIL PROTECTED]
I'm back to thinking I'm right...someone please prove me wrong here. If $fieldList is specified for Model::save() shouldn't it at least THEN ignore the 'with' relationships? It currently does the DELETE query even in this case. The only other option is saveField() but that is really wasteful

Re: Why are HABTM 'with' relationships auto-deleted on Model::save() ??

2008-01-24 Thread nate
class Post extends AppModel { var $hasAndBelongsToMany = array(Tag = array(with = Whatever, unique = false)); } On Jan 24, 2:48 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm back to thinking I'm right...someone please prove me wrong here. If $fieldList is specified for