tengo 2 entidades
@Entity() class UserEntity { @OneToOne() book: BookEntity; }y
@Entity() class BookEntity { public myCustomMethod(): boolean { return true; } } Cuando me uno a UserEntity y BookEntity , pierdo myCustomMethod y llamarlo como user.book.myCustomMethod lanza myCustomMethod is not a function .
Básicamente, creo que la combinación llena user.book como un objeto simple de javascript y no como un new BookEntity() .
¿Hay alguna manera de mantenerlo?