As the title says:
I have a business-user table and a business-hours table. buiness-hours has ManyToOne relationship with business-user.
The relationship on the side of business-hours is defined as below.
@ManyToOne(() => BusinessUser, (businessUser) => businessUser.businessHours)
@JoinColumn()
businessUser: BusinessUser;
Typeorm docs say that this should create a field as businessUserId in the table which it does. Also, as this is relationship on primary key then I don't need to name or refrence it.
But when I do find orfindOne query, businessUserId is not returned anymore. When I check database, the field and vaulues are present as expected, just that they are not returned in find query. Earlier it was working fine and I was getting relation table id for all tables but now it doesn't work anymore. Wondering if anyone could help me this or figuring out what changed. I have already tried the solutions to the similar questions asked here, nothiing helped.