Monday, November 3, 2008

CakePHP Model’s created / modified gotcha!

My created and modified fields were not updated in my database tables. I had painstakingly set them up with default values of '0000-00-00 00:00:00' and had them set (incorrectly, GRR!) to be not null. I thought that seemed strange as in my previous experience these fields always updated automagically. Then, I stumbled upon this little gem.

SANIsoft - PHP for E Biz» Blog Archive » CakePHP Model’s created / modified gotcha!

Now, I'm off to the work to change all these fields in all my tables. Ah, the joys of programming!

No comments:

Post a Comment