src/Modelling/ModelState.php
public function importRawData($data)
    {
        $this->modelData = $data;

        foreach ($data as $propertyName => $item) {
            if ($item instanceof ModelState) {
                $this->attachChangeListenerToModelProperty($propertyName, $item);
            }
        }

        // Make sure we can track changes in existing models.
        $this->takeChangeSnapshot();

        $this->onDataImported();
    }
public function importRawData($data)
    {
        $this->modelData = $data;

        foreach ($data as $propertyName => $item) {
            if ($item instanceof ModelState) {
                $this->attachChangeListenerToModelProperty($propertyName, $item);
            }
        }

        // Make sure we can track changes in existing models.
        $this->takeChangeSnapshot();

        $this->onDataImported();
    }
public function importRawData ( $ data ) { $ this -> modelData = $ data ; foreach ( $ data as $ propertyName => $ item ) { if ( $ item instanceof ModelState ) { $ this -> attachChangeListenerToModelProperty ( $ propertyName , $ item ) ; } } // Make sure we can track changes in existing models. $ this -> takeChangeSnapshot ( ) ; $ this -> onDataImported ( ) ; }
Imports raw model data into the model.

The data does not pass through any applicable Set methods or data transforms. If required to do so
call ImportData() instead, but understand the performance penalty of doing so.

@param array $data
Imports raw model data into the model .