Skip to content

Commit

Permalink
fix: make EntityMetadataValidator comply with entitySkipConstructor
Browse files Browse the repository at this point in the history
Closes #8444
  • Loading branch information
Francesco Salvi committed Dec 10, 2021
1 parent 54cf660 commit a581c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metadata-builder/EntityMetadataValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class EntityMetadataValidator {
}

// check if relations are all without initialized properties
const entityInstance = entityMetadata.create();
const entityInstance = entityMetadata.create(undefined, { fromDeserializer: true });
entityMetadata.relations.forEach(relation => {
if (relation.isManyToMany || relation.isOneToMany) {

Expand Down

0 comments on commit a581c4c

Please sign in to comment.