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

Class C

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

Source from the content-addressed store, hash-verified

35}
36
37@Entity()
38class C {
39 [EagerProps]?: 'bCollection';
40
41 @PrimaryKey({ type: Number })
42 id!: number;
43
44 @OneToOne(() => A)
45 a!: A;
46
47 @OneToMany(() => B, b => b.c, { eager: true })
48 bCollection = new Collection<B>(this);
49
50 @ManyToMany(() => B)
51 manyBs = new Collection<B>(this);
52}
53
54@Entity()
55class B {

Callers

nothing calls this directly

Calls 5

EntityClass · 0.90
PrimaryKeyFunction · 0.90
OneToOneFunction · 0.90
OneToManyFunction · 0.90
ManyToManyFunction · 0.90

Tested by

no test coverage detected