final public function valuesHadChanged(): bool
    {
        if (! is_array($this->originalValues)) {
            throw new \RuntimeException('The recordset does not contain any original values');
        }
        foreach ($this->originalValues as $field => $value) {
            $current = array_key_exists($field, $this->values) ? $this->values[$field] : null;
            if ($this->valueIsDifferent($value, $current)) {
                return true;
            }
        }
        return false;
    }
final public function valuesHadChanged(): bool
    {
        if (! is_array($this->originalValues)) {
            throw new \RuntimeException('The recordset does not contain any original values');
        }
        foreach ($this->originalValues as $field => $value) {
            $current = array_key_exists($field, $this->values) ? $this->values[$field] : null;
            if ($this->valueIsDifferent($value, $current)) {
                return true;
            }
        }
        return false;
    }
final public function valuesHadChanged ( ) : bool { if ( ! is_array ( $ this -> originalValues ) ) { throw new \ RuntimeException ( 'The recordset does not contain any original values' ) ; } foreach ( $ this -> originalValues as $ field => $ value ) { $ current = array_key_exists ( $ field , $ this -> values ) ? $ this -> values [ $ field ] : null ; if ( $ this -> valueIsDifferent ( $ value , $ current ) ) { return true ; } } return false ; }
Check whether the current values are different from the original ones
The base are the original values
@return bool
@throws \RuntimeException if no original values exists
Check whether the current values are different from the original ones The base are the original values