$model = new \app\common\model\Shop(); $model->data($param)->allowField(true)->isUpdate(false)->together(['admin'=>['username','password']])->save();