Commit 1879e657 authored by Taylor Otwell's avatar Taylor Otwell

tweak eloquent model change method to not check types.

parent ebcbbbb8
......@@ -502,7 +502,7 @@ abstract class Model {
*/
public function changed($attribute)
{
return array_get($this->attributes, $attribute) !== array_get($this->original, $attribute);
return array_get($this->attributes, $attribute) != array_get($this->original, $attribute);
}
/**
......
......@@ -37,6 +37,7 @@
## Laravel 3.2.4
- Speed up many to many eager loading mapping.
- Tweak the Eloquent::changed() method.
<a name="upgrade-3.2.3"></a>
## Upgrading From 3.2.3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment