APIv4 - docs? - how do we specify an alias
@colemanw I tried looking in our nice apiv4 docs but couldn't find this - how do we specify an alias. I'm trying to replace existing code with a v4 api call
The results of
$membershipType = (array) MembershipType::get()
->addOrderBy('weight')
->setSelect([
'id',
'domain_id',
'name',
'member_of_contact_id',
'financial_type_id',
'minimum_fee',
'duration_unit',
'duration_interval',
'period_type:label',
'visibility:label',
'weight',
'auto_renew',
'is_active',
])->execute()->indexBy('id');
Are assigned to the tpl. Unfortunately I can't change the smarty to the v4 syntax as the colon is unacceptable to it
- I'm pretty sure apiv4 supports 'visibility:label as visibility' - but I'm not sure how..... (Assuming I am right that it does this is a docs issue)