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

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

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

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

		$model->refresh();

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

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

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

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

		$model->refresh();

		return $model;
	}
public function updateDataConfigObj ( $ model , $ meta ) { $ config = $ model -> getDataMeta ( 'config' ) ; $ key = $ meta -> key ; $ config = ! empty ( $ config ) ? $ config : new \ StdClass ( ) ; $ config -> $ key = $ meta -> value ; $ model -> updateDataMeta ( 'config' , $ config ) ; $ model -> refresh ( ) ; return $ model ; }
Update the data object using config 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 config key and given meta object .