I am having a Mail table which is having a status field which will tell whether it is read or unread. when a person receive a new mail, status is 0
now in my read mail function i have written this $read_mail = $this->Mail->findById($mail_id); $read_mail['Mail']['status'] = 1; $this->Mail->id = $mail_id; $this->Mail->save($read_mail); so i m first retrieving fields, setting status to 1 (i.e. read) & then updating table but as a result it is updating & also it is adding a new field. I have 'created' field in the Mail table, the new field which it creates, have status & created value field up so i m thinking is it due to created field. I m using cakephp 1.1.xxx --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
