| 19 | } |
| 20 | |
| 21 | @Entity() |
| 22 | class Author { |
| 23 | @PrimaryKey() |
| 24 | id!: number; |
| 25 | |
| 26 | @Property() |
| 27 | name!: string; |
| 28 | |
| 29 | @ManyToOne(() => Country) |
| 30 | country!: Ref<Country>; |
| 31 | |
| 32 | @OneToMany(() => Book, b => b.author) |
| 33 | books = new Collection<Book>(this); |
| 34 | } |
| 35 | |
| 36 | @Entity() |
| 37 | class Book { |
nothing calls this directly
no test coverage detected