OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

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 8 months ago.

  • 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
    Yevhen Shyshkin
    Moderator

    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)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No