tweak eloquent model change method to not check types.
This commit is contained in:
parent
ebcbbbb843
commit
1879e6575a
|
@ -502,7 +502,7 @@ final public function sync()
|
|||
*/
|
||||
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 @@ ## Contents
|
|||
## 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
|
||||
|
|
Loading…
Reference in New Issue