Skip to content

Ignore NULL values when determining whether a model object is dirty #901

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

Merged
merged 1 commit into from
Jul 7, 2012

Conversation

franzliedke
Copy link
Contributor

Due to the use of isset, NULL values in model objects' attributes were causing the model to think it's dirty. Changing the check to use array_key_exists() fixes this.

taylorotwell added a commit that referenced this pull request Jul 7, 2012
Ignore NULL values when determining whether a model object is dirty
@taylorotwell taylorotwell merged commit e6ff7ba into laravel:develop Jul 7, 2012
flap152 pushed a commit to flap152/laravel that referenced this pull request Nov 24, 2017
flap152 pushed a commit to flap152/laravel that referenced this pull request Jan 29, 2024
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