OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions Extend Attendee to include Contacts

This topic contains 4 replies, has 2 voices, and was last updated by  zhex900 6 years, 10 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
  • #25384

    zhex900
    Participant

    Hi,

    I have a requirement to record attendance of meetings. An attendee can be either an User or a Contact. In CalendarEvents, an attendee is only an User. What is the best way to extend the attendee entity so that it will have a many to one association with User and Contact?

    Thank you!

    Jake He

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #25385

    Mike Kudelya
    Participant

    Hi

    You can start with the following steps:

    – Add Contact Many-To-One relation with a Attendee entity.
    – Add to the AttendeeSearchHandler.php ‘oro_contact’ alias.
    – Add ‘elseif ($relatedEntity instanceof Contact)’ to AttendeeRelationManager.php to correctly show Contact in autocomplete search.
    – Modify attendee field display on the Calendar Event view page.

    #25386

    zhex900
    Participant

    Should I use associations ?

    #25387

    zhex900
    Participant

    Hi,

    Don’t worry about my question about associations. I followed your instructions. Now I can add Contacts.

    I want to view all the attendees in grid. Please check my grid. I can’t see anything in view. It returns zero records.

    #25388

    zhex900
    Participant

    I got the grid working now.

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

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

Back to top