Justin, On Mar 31, 9:56 am, Stinkbug <justink...@gmail.com> wrote: > 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 tonull.
I started to go that route and then today I found this bug/request record: https://trac.cakephp.org/ticket/5702 That makes it seem like you can control NULL in DATE fields by a modification of the Forms Helper. But it looks like there are two suggestions on how to do it and no definitive comment from a dev. That ticket looks like it is still open but no comment since January. > > On Mar 18, 3:00 pm, edwingt <edwin.al...@gmail.com> wrote: > > > Hello, > > I want to save an emptydatefield, but I cant. > > There are some options to tell thedatefield that can benull? > > I already check that no rule is defined in the model, for thedate > > field and the databasedatefield 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---