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
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