MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / invalidCompositeIdentifier

Method invalidCompositeIdentifier

packages/core/src/errors.ts:148–150  ·  view source on GitHub ↗
(meta: EntityMetadata)

Source from the content-addressed store, hash-verified

146 }
147
148 static invalidCompositeIdentifier(meta: EntityMetadata): ValidationError {
149 return new ValidationError(`Composite key required for entity ${meta.className}.`);
150 }
151
152 static cannotCommit(): ValidationError {
153 return new ValidationError('You cannot call em.flush() from inside lifecycle hook handlers');

Callers 1

getReferenceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected