ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 4 replies, has 2 voices, and was last updated by Hiro Hiro 3 years, 2 months ago.

  • Creator
    Topic
  • #6037
    Hiro
    Hiro
    Participant

    Hello,

    I have added extra Field to pre-existing Entity with Migration Script like this:

    New field Branch is now displayed at User Detail Page in Additional Section, but the autocommplete drop down list displays Branch Id. I need to display Branch Name instead.

    How do I do that? Did I have to pass more config setting with addManyToOneRelation()?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #6038
    Hiro
    Hiro
    Participant

    In addition to this, I have noticed the selected value is not displayed after setting Branch and save it.
    When I see the database the data is stored.

    #6055

    Vova Soroka
    Oro Core

    Hi @Hiro,

    To display the branch name you just need to specify it in $targetColumnName parameter of addManyToOneRelation.

    About the second question: it seems like a bug, I’ll check it.

    #6056

    Vova Soroka
    Oro Core

    yes, I can reproduce the problem that the selected value is not displayed. We’ll fix it ASAP.

    #6062
    Hiro
    Hiro
    Participant

    Thank you for the reply. I created new Migration Script and it worked.

    I leave the sample code for others:

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.