src/ORM/DataObject.php
protected function updateChanges($forceChanges = false)
    {
        if ($forceChanges) {
            // Force changes, but only for loaded fields
            foreach ($this->record as $field => $value) {
                $this->changed[$field] = static::CHANGE_VALUE;
            }
            return true;
        }
        return $this->isChanged();
    }
protected function updateChanges($forceChanges = false)
    {
        if ($forceChanges) {
            // Force changes, but only for loaded fields
            foreach ($this->record as $field => $value) {
                $this->changed[$field] = static::CHANGE_VALUE;
            }
            return true;
        }
        return $this->isChanged();
    }
protected function updateChanges ( $ forceChanges = false ) { if ( $ forceChanges ) { // Force changes, but only for loaded fields foreach ( $ this -> record as $ field => $ value ) { $ this -> changed [ $ field ] = static :: CHANGE_VALUE ; } return true ; } return $ this -> isChanged ( ) ; }
Detects and updates all changes made to this object

@param bool $forceChanges If set to true, force all fields to be treated as changed
@return bool True if any changes are detected
Detects and updates all changes made to this object