Hi,
I am trying to update a field to an empty string in my DB. Sounds
simple and I cannot find anybody else with the problem so I am
thinking I must be doing something really wrong...
If I have a record in the DB with some value in 'description', for
example, and I do
$data = array('id'=>1, 'name'=>'test', 'description'=>'');
$this->model->save($data);
then the description will remain unchanged. I don't want to put 'NULL'
or any other thing in the field, just an empty string.
Is it possible? What am I missing?
Thanks for any clue!
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