Skip to main content

Function: ChildEntity()

ChildEntity(): <T>(constructor) => {(...args): child<T>; prototype: child<any>; } & T

Defined in: service-core/src/decorators/ModelDecorators.ts:46

Indicates that a class is a child entity to some parent. Child entities will inherit all datasource configuration of the parent, including cache settings.

Returns

<T>(constructor) => {(...args): child<T>; prototype: child<any>; } & T