diff --git a/generators/server/support/relationship.ts b/generators/server/support/relationship.ts index 0947106b09d1..aab846f5e321 100644 --- a/generators/server/support/relationship.ts +++ b/generators/server/support/relationship.ts @@ -24,7 +24,7 @@ import { ValidationResult } from '../../base/api.js'; // eslint-disable-next-line import/prefer-default-export export const addEntitiesOtherRelationships = (entities: Entity[]): ValidationResult => { const result: { warning: string[] } = { warning: [] }; - for (const entity of entities) { + for (const entity of entities.filter(entity => !entity.builtIn)) { for (const relationship of entity.relationships ?? []) { if ( !relationship.otherRelationship &&