LMongo\Eloquent\Model::getDirty PHP Method

getDirty() public method

Get the attributes that have been changed since last sync.
public getDirty ( ) : array
return array
    public function getDirty()
    {
        $dirty = array();
        foreach ($this->attributes as $key => $value) {
            if (!array_key_exists($key, $this->original) or $value !== $this->original[$key]) {
                $dirty[$key] = $value;
            }
        }
        return $dirty;
    }
Model