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

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

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

		$model->updateDataMeta( $type, $custom );

		$model->refresh();

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

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

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

		$model->updateDataMeta( $type, $custom );

		$model->refresh();

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

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