diff --git a/packages/core/database/src/update-associations.ts b/packages/core/database/src/update-associations.ts index f30881482..d9bb95889 100644 --- a/packages/core/database/src/update-associations.ts +++ b/packages/core/database/src/update-associations.ts @@ -297,7 +297,7 @@ export async function updateSingleAssociation( // @ts-ignore dataKey = association.targetKey; } else { - M = association.source as ModelCtor; + M = association.target as ModelCtor; dataKey = M.primaryKeyAttribute; }