updated_at field is not working |
Hi there, i tried all this methods posted here and googled out but found nothing useful.
The wierd thing is 'created_at' is working but 'updated_at' gets a null value so here is my model PHP Code: <?php Code: Here is my controller PHP Code: <?php Code: and here is my DB Code: DROP TABLE IF EXISTS `users`; Thanks in advance.
1. Timestamps are set automatically if configured correctly. There is no point in events.
2. If the data does not have a primary key when using the Model::save() method, then it will be considered that this is a new record and, accordingly, update events will not be called. |
Welcome Guest, Not a member yet? Register Sign In |