Skip to content

Is there a way to add referenceColumnName in adminjs config? #39

@pejmanhadavi

Description

@pejmanhadavi

Hello
I have the following codes in my entity:

@ManyToOne(() => OrganizationEntity, (organization) => organization.code)
@JoinColumn({ name: 'organizationCode', referencedColumnName: 'code' })
organization: OrganizationEntity;

@Column({ name: 'organizationCode' })
organizationCode: number;

now in admin dashboard, "Adminjs" does not recognize "referencedColumnName" and it is recognizing it as "organizationId" while listing, creating, editing.

Is there a way to add "referenceColumnName" in "Adminjs" config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions