src/Model/ModelUtil.php
public function hasValueChanged($newValue, DataContainer $dc): bool
    {
        if (null !== ($entity = $this->findModelInstanceByPk($dc->table, $dc->id))) {
            return $newValue != $entity->{$dc->field};
        }

        return true;
    }
public function hasValueChanged($newValue, DataContainer $dc): bool
    {
        if (null !== ($entity = $this->findModelInstanceByPk($dc->table, $dc->id))) {
            return $newValue != $entity->{$dc->field};
        }

        return true;
    }
public function hasValueChanged ( $ newValue , DataContainer $ dc ) : bool { if ( null !== ( $ entity = $ this -> findModelInstanceByPk ( $ dc -> table , $ dc -> id ) ) ) { return $ newValue != $ entity -> { $ dc -> field } ; } return true ; }
Determine if given value is newer than DataContainer value.

@param mixed         $newValue
@param DataContainer $dc

@return bool
Determine if given value is newer than DataContainer value .