CPM: Array of Contact Objects on a particular Opportunity
I'm writing a CPM to update fields on all of the other contacts (non-primary) on the opportunity that was updated. My code works perfectly if I specify the Contacts I want $second_contacts = array(RNCPHP\Contact::fetch(20259), RNCPHP\Contact::fetch(13083)) but I can't seem to obtain an array of the contact objects (or even Contact ID's) from the OtherContacts.
It seems simple enough but I can't seem to be able to accomplish it. Could it be that OtherContacts are an OpportunityContactArray?
Any help would be appreciated!