I'm doing this inside a loop:
$this->Channel->create();
$this->Channel->id = $channel;
$this->Channel->saveField('is_first_transfer', '0')
I'm inside a loop, so the value of $channel change each time...
The problem is that even though a debug of the Channel table shows me
that the "is_first_transfer" value was changed to 0, in phpmyadmin
the value remains "1", I don't understand quite well wha'ts happening
here... I tried with updateAll and it does the same, I tried with and
without the "create()" before the save, and it does the same...
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment