correction ùapping id_utilisateur
This commit is contained in:
parent
d79af25e04
commit
b809932fc2
@ -13,7 +13,7 @@ export class ParentsChildren {
|
|||||||
enfantId: string;
|
enfantId: string;
|
||||||
|
|
||||||
@ManyToOne(() => Parents, p => p.parentChildren, { onDelete: 'CASCADE' })
|
@ManyToOne(() => Parents, p => p.parentChildren, { onDelete: 'CASCADE' })
|
||||||
@JoinColumn({ name: 'id_parent', referencedColumnName: 'user_id' })
|
@JoinColumn({ name: 'id_parent', referencedColumnName: 'id_utilisateur' })
|
||||||
parent: Parents;
|
parent: Parents;
|
||||||
|
|
||||||
@ManyToOne(() => Children, c => c.parentLinks, { onDelete: 'CASCADE' })
|
@ManyToOne(() => Children, c => c.parentLinks, { onDelete: 'CASCADE' })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user