ปรับrelation geverment

This commit is contained in:
Bright 2024-05-14 16:20:18 +07:00
parent 566b4db692
commit 0d86a02f5b
2 changed files with 5 additions and 1 deletions

View file

@ -62,7 +62,7 @@ export class ProfileGovernment extends EntityBase {
@JoinColumn({ name: "profileId" })
profile: Profile;
@ManyToOne(() => ProfileEmployee, (ProfileEmployee) => ProfileEmployee.profileTrainings)
@ManyToOne(() => ProfileEmployee, (v) => v.profileGovernment)
@JoinColumn({ name: "profileEmployeeId" })
profileEmployee: ProfileEmployee;
}