src/Data/DefaultModel.php
public function setPropertiesAsArray($properties)
    {
        if (\is_array($properties)) {
            if (\array_key_exists('id', $properties)) {
                unset($properties['id']);
            }

            foreach ($properties as $propertyName => $value) {
                $this->setProperty($propertyName, $value);
            }
        }
    }
public function setPropertiesAsArray($properties)
    {
        if (\is_array($properties)) {
            if (\array_key_exists('id', $properties)) {
                unset($properties['id']);
            }

            foreach ($properties as $propertyName => $value) {
                $this->setProperty($propertyName, $value);
            }
        }
    }
public function setPropertiesAsArray ( $ properties ) { if ( \ is_array ( $ properties ) ) { if ( \ array_key_exists ( 'id' , $ properties ) ) { unset ( $ properties [ 'id' ] ) ; } foreach ( $ properties as $ propertyName => $ value ) { $ this -> setProperty ( $ propertyName , $ value ) ; } } }
Update all properties in the model.

@param array $properties The property values as name => value pairs.

@return void
Update all properties in the model .