OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions How do I access custom added fields in twigs

This topic contains 1 reply, has 2 voices, and was last updated by  Mike Kudelya 7 years, 5 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #25289

    hmadhur
    Participant

    Hi,

    I have followed the Extend Entity using Migrations documentation to the letter. I am extending Account entity where I have added a number of fields. I executed the migrations.

    The fields that I have added as enum are only visible in the forms. When I checked the oro_entity_config_field table I can see that only the enum fields have been added to the table. The other string and integer fields are not added to the table.

    I am giving the sample migrations code and view.html.twig file code. Please let me know where am I going wrong. I would also like to mention that I tried using both OWNER_CUSTOM and OWNER_SYSTEM in the owner attribute of the field in migrations.

    Migrations file:

    view.html.twig file for account:

    The error I am getting is:

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #25290

    Mike Kudelya
    Participant

    Hi,

    Look at addColumn arguments list – columnName, columnType, options. For example:

Viewing 1 replies (of 1 total)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top