Forums OroCRM OroCRM – Programming Questions Access custom entity field from template

This topic contains 2 replies, has 2 voices, and was last updated by  Nikita Petrov 3 years, 5 months ago.

  • Creator
  • #22204

    Nikita Petrov

    I’m working with OroCRM and billing integration via widget in account view page. For integration I need to keep external user ID for each account entity. For this I created custom field “billing_user_id” on Account entity. I also made template inheritance in my bundle for account view template.

    Now I have object of Account entity in my template for billing widget and I need to know how can I access my custom field “billing_user_id” from entity object? Should I use Doctrine entity inheritance? If I should please help me with sample how to inherit Account entity in my bundle.

    It’s important that I also need to access to my custom field from external system by API (read/write).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #22205

    Yevhen Shyshkin

    Hello, Nikita.

    The easiest way to access it is through regular getter:

    Also you can use UI macros to make it look better (see example):


    Nikita Petrov

    Yevhen, thank you!

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

You must be logged in to reply to this topic.