src/ORM/DataObject.php
public function forceChange()
    {
        // Ensure lazy fields loaded
        $this->loadLazyFields();

        // Populate the null values in record so that they actually get written
        foreach (array_keys(static::getSchema()->fieldSpecs(static::class)) as $fieldName) {
            if (!isset($this->record[$fieldName])) {
                $this->record[$fieldName] = null;
            }
        }

        $this->changeForced = true;

        return $this;
    }
public function forceChange()
    {
        // Ensure lazy fields loaded
        $this->loadLazyFields();

        // Populate the null values in record so that they actually get written
        foreach (array_keys(static::getSchema()->fieldSpecs(static::class)) as $fieldName) {
            if (!isset($this->record[$fieldName])) {
                $this->record[$fieldName] = null;
            }
        }

        $this->changeForced = true;

        return $this;
    }
public function forceChange ( ) { // Ensure lazy fields loaded $ this -> loadLazyFields ( ) ; // Populate the null values in record so that they actually get written foreach ( array_keys ( static :: getSchema ( ) -> fieldSpecs ( static :: class ) ) as $ fieldName ) { if ( ! isset ( $ this -> record [ $ fieldName ] ) ) { $ this -> record [ $ fieldName ] = null ; } } $ this -> changeForced = true ; return $ this ; }
Forces the record to think that all its data has changed.
Doesn't write to the database. Force-change preseved until
next write. Existing CHANGE_VALUE or CHANGE_STRICT values
are preserved.

@return $this
Forces the record to think that all its data has changed . Doesn t write to the database . Force - change preseved until next write . Existing CHANGE_VALUE or CHANGE_STRICT values are preserved .