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

Method onUpdate

packages/core/src/entity/defineEntity.ts:140–140  ·  view source on GitHub ↗
(onUpdate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>)

Source from the content-addressed store, hash-verified

138 defaultRaw(defaultRaw: string): PropertyChain<Value, Options & { defaultRaw: string }>;
139 formula(formula: string | FormulaCallback<any>): PropertyChain<Value, Omit<Options, 'formula'> & { formula: any }>;
140 onUpdate(onUpdate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): PropertyChain<Value, Options>;
141 fieldNames(...fieldNames: string[]): PropertyChain<Value, Options>;
142 type(type: PropertyValueType): PropertyChain<Value, Options>;
143 runtimeType(runtimeType: string): PropertyChain<Value, Options>;

Callers 10

get-kysely.test.tsFile · 0.65
streaming.test.tsFile · 0.65
GH6821.test.tsFile · 0.65
BaseEntity4.tsFile · 0.65
BaseEntity5.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected