I am using UUID as a primary key in user table i.e user_id field
$this->User->save($this->data);
$this->User->id; //recently inserted user_id
$values = array('user_type'=>"del" , 'date_of_registration'=>date
('Y-m-d H:i:s'));
$this->User->save($values); //updating recently inserted record of
an user
but the $this->User->save($values); not working, It is showing me
SELECT COUNT(*) AS `count` FROM `users` AS `User` WHERE
`User`.`user_id` = '49d7a069-4c5c-4391-b6c4-18830e7ba4d1' this query.
It is suppose to be an update query.
Does anyone has some solution for this?
Manisha.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment