-
Notifications
You must be signed in to change notification settings - Fork 347
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
Use getDirty instead of trying to find dirty data manually #8
Comments
looks like you still trying to do it manually together with the dirty method. $this->setKeysForSaveQuery($query)->update($dirty); |
Not sure where you're referring to? The |
i'm referring bough to beforesave and changedRevisionableFields() $this->dirty = $this->getDirty(); |
Sure, essentially I wanted to clean the data my way before calling If you want to make a pull request though, go for it and I'll merge it in. |
i'm taking the same approach for now =) maybe later if I have time Ill make 2014-02-24 23:37 GMT+02:00 Chris Duell notifications@github.com:
|
Cool. There's also just recently been quite a few updates to the whole section for #36 |
@duellsy Hi, While making update, getDirty returns empty in my case. Details are as follow;
Can you help about this issue. Thanks. |
I found my answer. The reason was that getDirty() does not return changes in case of mass updates.
|
Eloquent offers a method getDirty(), this can be used instead of doing the whole before / after comparison stuff
The text was updated successfully, but these errors were encountered: