src/Data/DefaultModel.php
public function setProperty($propertyName, $value)
    {
        if ($value !== $this->getProperty($propertyName)) {
            $this->setMeta(static::IS_CHANGED, true);
            $this->setPropertyRaw($propertyName, $value);
        }
    }
public function setProperty($propertyName, $value)
    {
        if ($value !== $this->getProperty($propertyName)) {
            $this->setMeta(static::IS_CHANGED, true);
            $this->setPropertyRaw($propertyName, $value);
        }
    }
public function setProperty ( $ propertyName , $ value ) { if ( $ value !== $ this -> getProperty ( $ propertyName ) ) { $ this -> setMeta ( static :: IS_CHANGED , true ) ; $ this -> setPropertyRaw ( $ propertyName , $ value ) ; } }
Update the property value in the model.

@param string $propertyName The property name to be set.
@param mixed  $value        The value to be set.

@return void
Update the property value in the model .