Commit bc7c2533 authored by MikeyMJCO's avatar MikeyMJCO
Browse files

Merge branch 'ej' into 'master'

Update explicit join examples

See merge request !959
parents f1464ad3 891e90fd
......@@ -31,6 +31,7 @@ civicrm_api4('Contact', 'get' [
[
'Participant AS participants', // Entity & alias
'LEFT', // Type of join
NULL, // entity bridge to use
['id', '=', 'participants.contact_id'], // ON clauses...
['participants.status_id:name', '=', "'Attended'"],
],
......@@ -52,6 +53,7 @@ Civi\Api4\Contact::get()
->addJoin(
'Participant AS participants',
'LEFT',
NULL,
['id', '=', 'participants.contact_id'],
['participants.status_id:name', 'IN', ['Registered', 'Attended']]
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment