You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this intended behavior where BeforeUpdate hook is only triggered and used when the values are updated using struct?
Is it possible to have a update tag which updates the updated_at column if it exists. Similar to how soft delete works, where we update deleted_at is set to current time if the column exists and we mention the tag in struct.
The text was updated successfully, but these errors were encountered:
Omkarz7
changed the title
"BeforeUpdate" not working individual column updates
"BeforeUpdate" hook not working for individual column updates
Feb 24, 2022
The following two queries don't update the updated_at column
The below queries work fine and update the updated_at column
Is this intended behavior where BeforeUpdate hook is only triggered and used when the values are updated using struct?
Is it possible to have a
update
tag which updates the updated_at column if it exists. Similar to how soft delete works, where we update deleted_at is set to current time if the column exists and we mention the tag in struct.The text was updated successfully, but these errors were encountered: