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

Method formula

packages/core/src/entity/defineEntity.ts:139–139  ·  view source on GitHub ↗
(formula: string | FormulaCallback<any>)

Source from the content-addressed store, hash-verified

137 ): PropertyChain<Value, Omit<Options, 'default'> & { default: any }>;
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>;

Callers 7

GH7307.test.tsFile · 0.65
GH6558.test.tsFile · 0.65
GHx34.test.tsFile · 0.65
Book4.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected