When typeorm-model-generator decided to add number to fieldName?
wizardnet972 opened this issue · 1 comments
wizardnet972 commented
luiys commented
how to solve this?
I'm having the following problem:
@Column("int", { name: "grupo", nullable: true })
group: number | null;
@ManyToOne(() => GrupoAcesso, (grupoAcesso) => grupoAcesso.grupoAcessoMenus, {
onDelete: "NO ACTION",
onUpdate: "NO ACTION",
})
@JoinColumn([{ name: "grupo", referencedColumnName: "id" }])
group2: GrupoAcesso;
I just need the relation to be generated
typeorm-model-generator version: 0.4.6
database: mysql