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

		$config = $model->getDataMeta( 'data' );
		$rkey	= $meta->key;

		unset( $config->$rkey );

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

		$model->refresh();

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

		$config = $model->getDataMeta( 'data' );
		$rkey	= $meta->key;

		unset( $config->$rkey );

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

		$model->refresh();

		return $model;
	}
public function removeDataKeyObj ( $ model , $ meta ) { $ config = $ model -> getDataMeta ( 'data' ) ; $ rkey = $ meta -> key ; unset ( $ config -> $ rkey ) ; $ model -> updateDataMeta ( 'data' , $ config ) ; $ model -> refresh ( ) ; return $ model ; }
Update the data object by removing the given key from data.

@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 by removing the given key from data .