Skip to content

[5.4] Avoid a problem when adding timestamp columns in dates array - #20193

Merged
taylorotwell merged 1 commit into
laravel:5.4from
themsaid:uniqueDates/Model
Jul 20, 2017
Merged

taylorotwell merged 1 commit into
laravel:5.4from
themsaid:uniqueDates/Model

Conversation

@themsaid

Copy link
Copy Markdown
Member

This change will ensure that date columns will be unique, so that if you add created_at and updated_at columns in your Model's $dates attribute they won't be parsed twice inside HasAttributes::addDateAttributesToArray().

@taylorotwell
taylorotwell merged commit 4a6d95b into laravel:5.4 Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants