Commit e8fc1de9 authored by eileen's avatar eileen 🎱
Browse files

Update explicit join examples

parent 230b50b8
......@@ -31,6 +31,7 @@ civicrm_api4('Contact', 'get' [
[
'Participant AS participants', // Entity & alias
'LEFT', // Type of join
NULL, // use entity bridge?
['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