New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change logic for default timestamp #585

Closed
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
3 participants
@stedjo

stedjo commented Oct 11, 2017

Change logic for default timestamp assignment for created_at and updated_at properties. Prevent overwriting values in case they are set by client

Issue also mentioned on
http://www.phpactiverecord.org/boards/4/topics/2066-re-saving-date-to-mysql-problem

@koenpunt

This comment has been minimized.

Show comment
Hide comment
@koenpunt

koenpunt Oct 28, 2017

Collaborator

There’s no point in manually setting the creation and/or update date. If you want to track a alternate date, use a different column for it.

Collaborator

koenpunt commented Oct 28, 2017

There’s no point in manually setting the creation and/or update date. If you want to track a alternate date, use a different column for it.

@koenpunt koenpunt closed this Oct 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment