hi , when i trie to update a model i get :
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@yahoo.comArray WHERE 1 = 1' at line 1 my model looks like that class User extends AppModel { var $name = 'User'; var $belongsTo = array('Group'); var $hasOne = 'Userinformation'; var $actsAs = array('Acl' => array('requester')); and th edit function : function edit($id = null) { if (empty($this->data)){ $this->User->id = $id; $this->data = $this->User->read(); } else { $this->User->id = $id; if($this->User->updateAll( array('User.email' => $this->data['User']['email']. array('User.id' => $this->User->id)) )){ $this->redirect(array('action'=>'index')); } } } how can o get over the warning? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---