I read about API chaining and I'm using it with get
actions to learn more about how it works. I'm confused by the inconsistent behavior of the following two API calls:
CRM.api3('participant', 'get',
{"id": 12345, "api.Event.get": {} });
That gets a participant record and embeds the single associated event record within the results. Cool.
But this one works differently:
CRM.api3('participant', 'get',
{"id": 12345, "api.ParticipantStatusType.get": {} });
It gets the same participant record, but embeds all status type records within the results. Why?
In general, I'd like to understand what logic CiviCRM is using to filter the results of chained calls.