Hello, thanks for your code. This way doesn't work.
Is my first way not the same like your, but only with an array in the save () - Action. I don't know what is wrong. My Problem is that my way only sets the status in the dataset but no other value Do you have any ideas? The reject-action works well, but only to save data in the database marcus On 21 Feb., 18:19, John Andersen <[email protected]> wrote: > WebbedIT got the right answer, just with some missing detail :) > > The solution missed that the values to be assigned in an array must > use => ! > So here the corrected solution: > [code] > $this->WishlistEntry->read(null, $entryId); > $this->WishlistEntry->set(array( > 'reservation_status' => 'FREE', > 'reservation_email' => 'NULL', > 'reservation_mail_sent' => 'NULL', > 'reservation_token' => String::uuid() > )); > $this->WishlistEntry->save(); > [/code] > Enjoy, > John > > On Feb 21, 6:36 pm, amarradi <[email protected]> wrote:> Thanks, This > way also doesn't work. But why? I tested it in some ways. > > I dont't know why the reject Action works only with the status field. > > [snip] 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 [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
