Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:5.4from
xcaptain:fix-increment-attribute
Apr 10, 2017
Merged

taylorotwell merged 1 commit into
laravel:5.4from
xcaptain:fix-increment-attribute

Conversation

@xcaptain

@xcaptain xcaptain commented Apr 9, 2017

Copy link
Copy Markdown
Contributor

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