Related field: is_delete: False delete, whether to delete create_time: creation time update_time: Last update time tp version 3.2 when I want to process data through tp, perform the following operations: save is_delete0create_time creation time when adding data updat... related fields:
Is_delete
Create_time: creation time
Update_time: Last update time
Tp version 3.2
When I want to process data through tp, perform the following operations:
Every table operation must implement such a function. if every file is not written to death, what public methods should be implemented? How can this problem be achieved?
Reply content:
Related fields:
Is_delete
Create_time: creation time
Update_time: Last update time
Tp version 3.2
When I want to process data through tp, perform the following operations:
Every table operation must implement such a function. if every file is not written to death, what public methods should be implemented? How can this problem be achieved?
You need to use auto-completion in the model
Http://document.thinkphp1.cn/manual_3_2.html#auto_operate
Set the update_time type to timestamp and update it based on the current timestamp.