code: public function createModel($id, $attributes)
      {
          return Yii::createObject(['class' => $this->foreignModelClass, 'tableName' => $this->fileSource->id, 'interface' => $this->module, 'id' => $id, 'attributes' => $attributes]);
      }
docs: Create the model.
  
  @param string|int         $id         the primary key for the model
  @param array $attributes attrribute for the model
  
  @return Model the foreign model