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

Class B

tests/features/decorators/es/basic-usage.sqlite.test.ts:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54@Entity()
55class B {
56 @PrimaryKey({ type: Number })
57 id!: number;
58
59 @OneToOne(() => A, a => a.b, { eager: true })
60 a!: A;
61
62 @ManyToOne(() => C, { nullable: true })
63 c?: C;
64
65 @Property({ type: String })
66 @Check({ expression: c => quote`${c.prop} <> 'data'` })
67 prop!: string;
68}
69
70@Embeddable()
71class Identity {

Callers

nothing calls this directly

Calls 7

EntityClass · 0.90
PrimaryKeyFunction · 0.90
OneToOneFunction · 0.90
ManyToOneFunction · 0.90
PropertyFunction · 0.90
CheckFunction · 0.90
quoteFunction · 0.50

Tested by

no test coverage detected