src/ORM/FieldType/DBComposite.php
public function isChanged()
    {
        // When unbound, use the local changed flag
        if (! ($this->record instanceof DataObject)) {
            return $this->isChanged;
        }

        // Defer to parent record
        foreach ($this->compositeDatabaseFields() as $field => $spec) {
            $key = $this->getName() . $field;
            if ($this->record->isChanged($key)) {
                return true;
            }
        }
        return false;
    }
public function isChanged()
    {
        // When unbound, use the local changed flag
        if (! ($this->record instanceof DataObject)) {
            return $this->isChanged;
        }

        // Defer to parent record
        foreach ($this->compositeDatabaseFields() as $field => $spec) {
            $key = $this->getName() . $field;
            if ($this->record->isChanged($key)) {
                return true;
            }
        }
        return false;
    }
public function isChanged ( ) { // When unbound, use the local changed flag if ( ! ( $ this -> record instanceof DataObject ) ) { return $ this -> isChanged ; } // Defer to parent record foreach ( $ this -> compositeDatabaseFields ( ) as $ field => $ spec ) { $ key = $ this -> getName ( ) . $ field ; if ( $ this -> record -> isChanged ( $ key ) ) { return true ; } } return false ; }
Returns true if this composite field has changed.
For fields bound to a DataObject, this will be cleared when the DataObject is written.
Returns true if this composite field has changed . For fields bound to a DataObject this will be cleared when the DataObject is written .