Skip to content

Instantly share code, notes, and snippets.

@eresende
Created November 28, 2016 17:29
Show Gist options
  • Save eresende/ae3b679269481118fa95171269acd924 to your computer and use it in GitHub Desktop.
Save eresende/ae3b679269481118fa95171269acd924 to your computer and use it in GitHub Desktop.
SuiteCRM and SecurityGroups - Custom Modules
$dictionary["custom_module_securitygroups"] = array(
'true_relationship_type' => 'many-to-many',
'relationships' =>
array(
'custom_module_securitygroups' =>
array(
'lhs_module' => 'SecurityGroups',
'lhs_table' => 'securitygroups',
'lhs_key' => 'id',
'rhs_module' => 'custom_Module',
'rhs_table' => 'custom_module',
'rhs_key' => 'id',
'join_table' => 'securitygroups_records',
'join_key_lhs' => 'securitygroup_id',
'join_key_rhs' => 'record_id',
'relationship_type' => 'many-to-many',
'relationship_role_column' => 'module',
'relationship_role_column_value' => 'custom_Module',
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment