| 35 | } |
| 36 | |
| 37 | @Entity() |
| 38 | class 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() |
| 55 | class B { |
nothing calls this directly
no test coverage detected