Skip to content
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

[5.4] fix eloquent increment or decrement update attributes #18739

Merged
merged 1 commit into from
Apr 10, 2017

Conversation

xcaptain
Copy link
Contributor

@xcaptain xcaptain commented Apr 9, 2017

when execute $model->increment($column, $amount, $extra)
the corresponding attributes should updated.

use
phpunit tests/Database/DatabaseEloquentModelTest.php --filter 'testIncrementOnExistingModelCallsQueryAndSetsAttribute' to run this test.

when execute `$model->increment($column, $amount, $extra)`
the corresponding attributes should updated
@xcaptain xcaptain changed the title fix eloquent increment or decrement update attributes [5.4] fix eloquent increment or decrement update attributes Apr 9, 2017
@taylorotwell taylorotwell merged commit ac2d8fc into laravel:5.4 Apr 10, 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