I ran into the same problem. I've been told this is a PHP problem, not really a Cake problem. The way we ended up handling it is by creating a stored procedure and calling that procedure within our model. Basically, what the procedure does is take the data and makes sure that all 0000-00-00 fields are set to null.
On Mar 18, 3:00 pm, edwingt <[email protected]> wrote: > Hello, > I want to save an empty date field, but I cant. > There are some options to tell the date field that can be null? > I already check that no rule is defined in the model, for the date > field and the database date field accepts nulls. > > Any advice? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
