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

Fix bug that causes other packages not to work #75

Merged
merged 1 commit into from
May 23, 2017

Conversation

kohenkatz
Copy link
Contributor

The Eloquent Model's setRawAttributes method returns this, which allows it to be chained with other methods. This package currently does not return anything from the overriden method, which causes other packages (such as spatie/laravel-activitylog to break. This fix returns the result of parent::setRawAttributes to resolve this issue.

The Eloquent Model's `setRawAttributes` method returns `this`, which allows it to be chained with other methods. This package currently does not return anything from the overriden method, which causes other packages (such as [spatie/laravel-activitylog](https://github.com/spatie/laravel-activitylog) to break. This fix returns the result of `parent::setRawAttributes` to resolve this issue.
@kohenkatz
Copy link
Contributor Author

See spatie/laravel-activitylog#27 for the example that breaks.

@coveralls
Copy link

coveralls commented May 22, 2017

Coverage Status

Coverage increased (+0.3%) to 83.275% when pulling e0ea7ae on kohenkatz:patch-1 into 907d33d on njbarrett:master.

@njbarrett njbarrett merged commit 64f279e into mstaack:master May 23, 2017
@njbarrett
Copy link
Collaborator

Appreciate this thank you

@kohenkatz kohenkatz deleted the patch-1 branch May 23, 2017 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants