Skip to content

Instantly share code, notes, and snippets.

@betobaz
Created January 26, 2017 23:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betobaz/9b01565ee15b97690d4a6544fc25e3e8 to your computer and use it in GitHub Desktop.
Save betobaz/9b01565ee15b97690d4a6544fc25e3e8 to your computer and use it in GitHub Desktop.
SugarCRM: Create relate field by manifest
<?php
/*********************************************************************************
* By installing or using this file, you are confirming on behalf of the entity
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by
* the SugarCRM Inc. Master Subscription Agreement (“MSA”), which is viewable at:
* http://www.sugarcrm.com/master-subscription-agreement
*
* If Company is not bound by the MSA, then by installing or using this file
* you are agreeing unconditionally that Company will be bound by the MSA and
* certifying that you have authority to bind Company accordingly.
*
* Copyright (C) 2004-2013 SugarCRM Inc. All rights reserved.
********************************************************************************/
// THIS CONTENT IS GENERATED BY MBPackage.php
$manifest = array (
0 =>
array (
'acceptable_sugar_versions' =>
array (
0 => '7.7.*',
),
),
1 =>
array (
'acceptable_sugar_flavors' =>
array (
0 => 'PRO',
1 => 'ENT',
),
),
'readme' => '',
'key' => '',
'author' => 'PABS',
'description' => 'CF_Accounts_vendedor_c',
'icon' => '',
'is_uninstallable' => false,
'name' => 'CF_Accounts_vendedor_c',
'published_date' => '2017-01-10 13:46:23',
'type' => 'module',
'version' => 201404301346,
);
$installdefs = array (
'id' => 'CF_Accounts_vendedor_c',
'custom_fields' =>
array (
array (
'name' => 'user_vendedor_c',
'type' => 'relate',
'vname' => 'LBL_USER_VENDEDOR_C_USER_ID',
'default_value' => false,
'module' => 'Accounts',
'date_modified' => '2017-01-25 10:32:05',
'deleted' => '0',
'audited' => true,
'duplicate_merge' => false,
'reportable' => true,
'ext2' => 'Users',
'ext3' => 'user_id_c',
),
array (
'name' => 'user_id_c',
'type' => 'id',
'label' => 'LBL_USER_VENDEDOR',
'default_value' => false,
'module' => 'Accounts',
'date_modified' => '2017-01-25 10:32:05',
'deleted' => '0',
'audited' => true,
'duplicate_merge' => false,
'reportable' => true,
'len' => 36,
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment