src/Titon/Model/Model.php
public function getChanged() {
        $attributes = [];

        if ($this->changed()) {
            $attributes = array_diff_assoc($this->_attributes, $this->_original);

            // Remove reserved attributes
            $attributes = Hash::exclude($attributes, $this->reserved);
        }

        return $attributes;
    }
public function getChanged() {
        $attributes = [];

        if ($this->changed()) {
            $attributes = array_diff_assoc($this->_attributes, $this->_original);

            // Remove reserved attributes
            $attributes = Hash::exclude($attributes, $this->reserved);
        }

        return $attributes;
    }
public function getChanged ( ) { $ attributes = [ ] ; if ( $ this -> changed ( ) ) { $ attributes = array_diff_assoc ( $ this -> _attributes , $ this -> _original ) ; // Remove reserved attributes $ attributes = Hash :: exclude ( $ attributes , $ this -> reserved ) ; } return $ attributes ; }
Return an array of data that only includes attributes that have changed.

@return array
Return an array of data that only includes attributes that have changed .