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

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

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

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

		$model->refresh();

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

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

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

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

		$model->refresh();

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