institucion programa service final

This commit is contained in:
2022-12-22 07:08:21 -06:00
parent 329a57a2c5
commit e912dde0ca
6 changed files with 61 additions and 52 deletions
@@ -22,7 +22,9 @@ export class InstitucionPrograma {
@Column({ type: Number, nullable: true })
id_programa: number;
@ManyToOne(() => Institucion, (institucion) => institucion.programas)
@ManyToOne(() => Institucion, (institucion) => institucion.programas, {
eager: true,
})
@JoinColumn({ name: 'id_institucion' })
institucion: Institucion;