Fixes private field of target relation being reset - #9712 (#9713)

Thank you for this improvement !
This commit is contained in:
Minjun Kim 2021-04-20 22:33:50 +09:00 committed by GitHub
parent 9ce011bed0
commit 19a15b4eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,6 +224,7 @@ const generateRelation = ({ key, attribute, plugin, modelName, targetAttribute =
plugin,
columnName: attribute.targetColumnName || undefined,
autoPopulate: targetAttribute.autoPopulate,
private: targetAttribute.private || undefined,
};
switch (attribute.nature) {