diff --git a/packages/actions/src/actions/common.ts b/packages/actions/src/actions/common.ts index 069cdbd7a..9f8233923 100644 --- a/packages/actions/src/actions/common.ts +++ b/packages/actions/src/actions/common.ts @@ -16,6 +16,8 @@ async function hasManyGet(instances, options: any = {}) { const where = {}; let Model = this.target; + Model = Model.database.getModel(Model.name); + let instance; let values;