OK, apologies for redirecting you to the cookbook when your initial
entry had followed the structure explained on the Saving Your Data
page, it's just I have never used the Model->set method to save things
so it looked odd to me.

You have taken

   1.  $this->Post->read(null, 1);
   2. $this->Post->set(array(
   3.   'title' => 'New title',
   4.   'published' => false
   5. ));
   6. $this->Post->save();

and made it into

   1. $this->WishlistEntry->read(null, $entryId);
   2. $this->WishlistEntry->set(
   3.   'reservation_status' , 'FREE',
   4.   'reservation_email' , 'NULL',
   5.   'reservation_mail_sent', 'NULL',
   6.   'reservation_token' , String::uuid()
   7. );
   8. $this->WishlistEntry->save();

If you compare the two you should be able to spot the issue as you've
not supplied your fields as an array.  Try

   1. $this->WishlistEntry->read(null, $entryId);
   2. $this->WishlistEntry->set(array(
   3.   'reservation_status' , 'FREE',
   4.   'reservation_email' , 'NULL',
   5.   'reservation_mail_sent', 'NULL',
   6.   'reservation_token' , String::uuid()
   7. ));
   8. $this->WishlistEntry->save();

HTH

Paul.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to