cakePHP - 修改字段不更新 [英] cakePHP - modified field not updating

查看:232
本文介绍了cakePHP - 修改字段不更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关如何调试未更新的修改字段的任何想法?

Any ideas on how to debug a modified field that is not being updated? The created field works fine.

我不知道您需要查看哪些代码,请让我知道!

I'm not sure what code you would need to look at so let me know!

感谢

推荐答案

像Anh Pham说, modified created 字段需要 DATETIME ,并且它们还需要默认为 NULL ,如在CakePHP书中解释的有关主题

Like Anh Pham said, the modified and created field need to be DATETIME and they also need to default to NULL, as explained in the CakePHP book about the subject.

这篇关于cakePHP - 修改字段不更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆