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

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 Mike Kudelya 1 year, 4 months ago.

  • Creator
  • #54139



    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
  • #54140
    Mike Kudelya
    Mike Kudelya


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

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.