$query = 'SELECT id, contact_id FROM civicrm_address WHERE master_id = %1';
$dao = CRM_Core_DAO::executeQuery($query, [1 => [$addressId, 'Integer']]);
- // legacy - for api backward compatibility
- if (!isset($params['add_relationship']) && isset($params['update_current_employer'])) {
- // warning
- CRM_Core_Error::deprecatedFunctionWarning('update_current_employer is deprecated, use add_relationship instead');
- $params['add_relationship'] = $params['update_current_employer'];
- }
-
// Default to TRUE if not set to maintain api backward compatibility.
$createRelationship = $params['add_relationship'] ?? TRUE;