code: public function create( $model, $config = [] ) {
  
  		if( empty( $model->siteId ) ) {
  
  			$model->siteId = Yii::$app->core->site->id;
  		}
  
  		return parent::create( $model, $config );
   	}
docs: Create -------------