Hi there, currently the timestamp and paranoid fields are not working well when the model is using different casing than camel case.
With setting { "timestamps": true, "underscored": true }, the fields names are compared to createdat / updatedat etc, but their field names are created_at, updated_atetc. This causes that fields are not being correctly recognized as timestamps / paranoids and their fields are included in the model definition.
Hi there, currently the timestamp and paranoid fields are not working well when the model is using different casing than camel case.
With setting
{ "timestamps": true, "underscored": true }
, the fields names are compared tocreatedat
/updatedat
etc, but their field names arecreated_at
,updated_at
etc. This causes that fields are not being correctly recognized as timestamps / paranoids and their fields are included in the model definition.Current implementation
The change compares the field name recased to camel case with the corresponding camel case name