Hi,

When I use a form to update a model, and I leave certain integer fields
empty, those fields are saved as 0 in the database.  Is there a simple
way to change this behavior, or do I have to change these fields like
this:
 if (trim($this->data->field) == '') { $this->data->field = NULL; }

w/in the 'save' method of the controller?

-Mike


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to