Skip to content

Commit

Permalink
Update generators/base-application/support/prepare-entity.mts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Oct 20, 2023
1 parent 3824da8 commit 1b6d2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/base-application/support/prepare-entity.mts
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ function preparePostEntityCommonDerivedPropertiesNotTyped(entity: any) {
relationship.bagRelationship ||
entity.eagerLoad ||
// Fetch relationships if otherEntityField differs otherwise the id is enough
relationship.ownerSide && relationship.otherEntity.primaryKey.name !== relationship.otherEntityField),
(relationship.ownerSide && relationship.otherEntity.primaryKey.name !== relationship.otherEntityField),
});
});
entity.relationshipsContainEagerLoad = entity.relationships.some(relationship => relationship.relationshipEagerLoad);
Expand Down

0 comments on commit 1b6d2c7

Please sign in to comment.