OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums 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 9 years, 8 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
  • #24824

    Nikita Petrov
    Participant

    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
    Replies
  • #24825

    Yevhen Shyshkin
    Participant

    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):

    #24826

    Nikita Petrov
    Participant

    Yevhen, thank you!

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

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

Back to top