Re: Loosing HABTM with savefield ?

2008-03-06 Thread Crux
Before you do $data = $this->Article->read('published', $id ); add $this->Article->recursive = 0; Cheers On Mar 3, 2:00 pm, Mech7 <[EMAIL PROTECTED]> wrote: > I have an article and tag model.. when i saved an article with tags it > works fine, but i made a publish / unpublish function l

Loosing HABTM with savefield ?

2008-03-03 Thread Mech7
I have an article and tag model.. when i saved an article with tags it works fine, but i made a publish / unpublish function like below, but when i use it all habtm relations are deleted how can i prevent this? public function admin_publish($id) { $data = $this->Article->r