-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
[RFC] Require Timestampable model behavior only take one field #165
Comments
I could be wrong, but it seems @Jurigag can help us here. |
So it should function the same as laravels timestamp attributes where |
Yeah, I think on creation, only |
I am fine with this being changed to only one field per model. |
Something that I found in phalcon/cphalcon#14027 is that the Timestampable model behavior has the option to pass a string or an array of fields:
https://github.com/phalcon/cphalcon/blob/7d8ffd16f6f44bf28d0d700b34cfd6121494023a/phalcon/Mvc/Model/Behavior/Timestampable.zep#L80
If you pass an array, those fields will be updated with the same timestamp and in the same format:
Why would anyone need to legitimately use this? Is it safe to remove passing as an array?
The text was updated successfully, but these errors were encountered: