When saving to a model, created and modified aren't automatically populated by CakePHP. Using SQL Se
Posted
by bakerjr
on Stack Overflow
See other posts from Stack Overflow
or by bakerjr
Published on 2010-04-27T05:40:52Z
Indexed on
2010/04/27
5:43 UTC
Read the original article
Hit count: 272
Hi when saving to a model, my created and modified fields aren't automatically populated by CakePHP. It was automatically populated when I was using MySQL but now it isn't. I'm not using NOW() back when I was still using MySQL. Why is it? Also when a field's value is not set 'NULL' (with quotes) is inserted causing errors because SQL Server says I can't insert a string to a field of type smallint/date etc. How do I fix this?
Thanks in advance!
© Stack Overflow or respective owner