OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions Creating relation between Call and Account in code

This topic contains 2 replies, has 2 voices, and was last updated by  dawid.zaroda 5 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
  • #37526

    dawid.zaroda
    Participant

    Hello,

    I have problem with relations between activities and other objects – this Oro “Context” is something new for me. How can I create relation between Call and Account in code? I have access to Call entity and account ID.

    I will be grateful for your help.

    Regards

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

    Yevhen Shyshkin
    Participant

    Hello, Dawid.

    Please, check Call entity – it implements interface Oro\Bundle\ActivityBundle\Model\ActivityInterface which has method addActivityTarget. You may pass there Account entity or just create a reference based on account ID and pass it instead.

    Just for your information – real implementation of this method is autogenerated and stored at entity cache.

    #37538

    dawid.zaroda
    Participant

    Hello,
    thanks for your response – it works :)

    Regards,
    Dawid

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

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top