modulo institucion infraccion final
This commit is contained in:
parent
6ee9ddd10a
commit
4ea6f46629
@ -13,5 +13,5 @@ export class Infraccion {
|
||||
() => InstitucionInfraccion,
|
||||
(institucionInfraccion) => institucionInfraccion.infraccion,
|
||||
)
|
||||
institucionInfracciones: InstitucionInfraccion[];
|
||||
instituciones: InstitucionInfraccion[];
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ export class InstitucionInfraccion {
|
||||
|
||||
@ManyToOne(
|
||||
() => Infraccion,
|
||||
(infraccion) => infraccion.institucionInfracciones,
|
||||
(infraccion) => infraccion.instituciones,
|
||||
{ eager: true },
|
||||
)
|
||||
@JoinColumn({ name: 'id_infraccion' })
|
||||
|
@ -5,8 +5,8 @@ import {
|
||||
} from '@nestjs/common';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
import { Repository } from 'typeorm';
|
||||
import { InstitucionInfraccion } from './entity/institucion-infraccion.entity';
|
||||
import { Infraccion } from './entity/infraccion.entity';
|
||||
import { InstitucionInfraccion } from './entity/institucion-infraccion.entity';
|
||||
import { InstitucionService } from '../institucion/institucion.service';
|
||||
|
||||
@Injectable()
|
||||
|
Loading…
Reference in New Issue
Block a user