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!
Thanks
I got the same problem today and found out the modified
field is only updated if any changes have been made, otherwise the field will not be touched.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With