ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 4 replies, has 2 voices, and was last updated by  zhex900 4 months, 1 week ago.

  • Creator
    Topic
  • #34334

    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
  • #34396
    Mike Kudelya
    Mike Kudelya
    Oro Core

    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.

    #34403

    zhex900
    Participant

    Should I use associations ?

    #34412

    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.

    #34442

    zhex900
    Participant

    I got the grid working now.

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

You must be logged in to reply to this topic.