-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add hasChanges
to AR
#10
Comments
Sounds good to me. |
I would like to remind you that AR is is not a final class but only a base for user models - every new method reserves some name and may make naming things harder for the end user. I'm pretty sure that many people already use |
I would rather avoid to change naming logic, and keep "dirty"'s one. I would go for However |
@rob006 and @CedricYii both have a point. |
Yep, I'm also for consistent naming and in that case add If the proposal ok, I can make the PR. |
@armpogart please do. Dirty sounds better because @rob006 arguments. |
Hi! I have idea - add method to \yii\db\ActiveRecord. I think it conveniently.
And, maybe, rename dirtyAttributes() to changes() or changedAttributes()?
The text was updated successfully, but these errors were encountered: