common/models/base/ActiveRecord.php
public function copyForUpdateTo( $model, $attributes = [] ) {

		foreach ( $attributes as $attribute ) {

			$model->setAttribute( $attribute, $this->getAttribute( $attribute ) );
		}
	}
public function copyForUpdateTo( $model, $attributes = [] ) {

		foreach ( $attributes as $attribute ) {

			$model->setAttribute( $attribute, $this->getAttribute( $attribute ) );
		}
	}
public function copyForUpdateTo ( $ model , $ attributes = [ ] ) { foreach ( $ attributes as $ attribute ) { $ model -> setAttribute ( $ attribute , $ this -> getAttribute ( $ attribute ) ) ; } }
Copy attributes to update a model for selected columns to target model.

@param ActiveRecord $model Target Model to which attributes will be copied.
Copy attributes to update a model for selected columns to target model .