common/services/traits/resources/DataTrait.php
public function updateDataSettingObj( $model, $meta ) {

		$settings	= $model->getDataMeta( 'settings' );
		$key		= $meta->key;
		$settings	= !empty( $settings ) ? $settings : new \StdClass();

		$settings->$key = $meta->value;

		$model->updateDataMeta( 'settings', $settings );

		$model->refresh();

		return $model;
	}
public function updateDataSettingObj( $model, $meta ) {

		$settings	= $model->getDataMeta( 'settings' );
		$key		= $meta->key;
		$settings	= !empty( $settings ) ? $settings : new \StdClass();

		$settings->$key = $meta->value;

		$model->updateDataMeta( 'settings', $settings );

		$model->refresh();

		return $model;
	}
public function updateDataSettingObj ( $ model , $ meta ) { $ settings = $ model -> getDataMeta ( 'settings' ) ; $ key = $ meta -> key ; $ settings = ! empty ( $ settings ) ? $ settings : new \ StdClass ( ) ; $ settings -> $ key = $ meta -> value ; $ model -> updateDataMeta ( 'settings' , $ settings ) ; $ model -> refresh ( ) ; return $ model ; }
Update the data object using settings key and given meta object.

@param \cmsgears\core\common\models\base\ActiveRecord $model
@param \cmsgears\core\common\models\forms\Meta $meta
@return \cmsgears\core\common\models\base\ActiveRecord
Update the data object using settings key and given meta object .