Skip to content

Conversation

@salebab
Copy link
Contributor

@salebab salebab commented Dec 18, 2014

Column updated_at is already updated in Model::performUpdate(), it is not necessary to be updated again in Eloquent\Builder::update()

@GrahamCampbell GrahamCampbell changed the title [4.2] Fix - column updated_at is updated twice. [4.2] Fix updated_at Being Updated Twice Dec 18, 2014
@GrahamCampbell
Copy link
Collaborator

We probably need tests for this.

@taylorotwell
Copy link
Member

And if you are doing a fluent query update on the model?

@salebab
Copy link
Contributor Author

salebab commented Dec 19, 2014

Probably Model::update should be changed. Personally, I don't like idea to update timestamps in builder, it should be Model responsibility. It will give you more control from application level. Right now, fix #5840 is not working because of it.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants