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

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

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

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

		$model->refresh();

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

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

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

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

		$model->refresh();

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