Files
crm.e5.pl/custom/working/modules/Accounts/relationships.php
2024-04-27 09:23:34 +02:00

522 lines
16 KiB
PHP
Executable File

<?php
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$relationships = array (
'campaign_accounts' =>
array (
'id' => '15845324-5ab1-ea2e-859c-4e8d9a3bc53b',
'relationship_name' => 'campaign_accounts',
'lhs_module' => 'Campaigns',
'lhs_table' => 'campaigns',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'campaign_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => 'default',
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'member_accounts' =>
array (
'id' => '20c8e1c8-b4b1-cf77-c2d5-4e8d9ab332a4',
'relationship_name' => 'member_accounts',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'parent_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => NULL,
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'account_cases' =>
array (
'id' => '20e99aa7-9cbd-5b62-f750-4e8d9a229dff',
'relationship_name' => 'account_cases',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Cases',
'rhs_table' => 'cases',
'rhs_key' => 'account_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => NULL,
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'account_tasks' =>
array (
'id' => '210984b2-90d8-4480-23c9-4e8d9a81c4c3',
'relationship_name' => 'account_tasks',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Tasks',
'rhs_table' => 'tasks',
'rhs_key' => 'parent_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => NULL,
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'account_notes' =>
array (
'id' => '212a9c96-a0f6-b928-d314-4e8d9aa3834c',
'relationship_name' => 'account_notes',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Notes',
'rhs_table' => 'notes',
'rhs_key' => 'parent_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => NULL,
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'account_meetings' =>
array (
'id' => '214b89a3-7c32-4afa-b0f0-4e8d9ae07473',
'relationship_name' => 'account_meetings',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Meetings',
'rhs_table' => 'meetings',
'rhs_key' => 'parent_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => NULL,
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'account_calls' =>
array (
'id' => '216c8c0a-fefd-bc27-fdcd-4e8d9acafd2f',
'relationship_name' => 'account_calls',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Calls',
'rhs_table' => 'calls',
'rhs_key' => 'parent_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => NULL,
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'account_leads' =>
array (
'id' => '21b04592-9ca8-60a9-f4d8-4e8d9a13fc5b',
'relationship_name' => 'account_leads',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Leads',
'rhs_table' => 'leads',
'rhs_key' => 'account_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => NULL,
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'account_ecmquotes' =>
array (
'id' => '21d124b3-e67b-61ab-d181-4e8d9a26d839',
'relationship_name' => 'account_ecmquotes',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'EcmQuotes',
'rhs_table' => 'ecmquotes',
'rhs_key' => 'parent_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => 'default',
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'account_ecminvoiceouts' =>
array (
'id' => '21f218be-fbf2-0ae7-6ba0-4e8d9a6c7228',
'relationship_name' => 'account_ecminvoiceouts',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'EcmInvoiceOuts',
'rhs_table' => 'ecminvoiceouts',
'rhs_key' => 'parent_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => 'default',
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'ecmquotes_account' =>
array (
'id' => '386eb4bf-4e83-2f92-878d-4e8d9ac16bfb',
'relationship_name' => 'ecmquotes_account',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'EcmQuotes',
'rhs_table' => 'ecmquotes',
'rhs_key' => 'parent_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => 'default',
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'ecminvoiceouts_account' =>
array (
'id' => '39bf1761-1a3f-15be-80ae-4e8d9a496b70',
'relationship_name' => 'ecminvoiceouts_account',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'EcmInvoiceOuts',
'rhs_table' => 'ecminvoiceouts',
'rhs_key' => 'parent_id',
'join_table' => NULL,
'join_key_lhs' => NULL,
'join_key_rhs' => NULL,
'relationship_type' => 'one-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => 'default',
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'accounts_bugs' =>
array (
'id' => '4713e39b-11f9-c18c-f3b2-4e8d9ac55955',
'relationship_name' => 'accounts_bugs',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Bugs',
'rhs_table' => 'bugs',
'rhs_key' => 'id',
'join_table' => 'accounts_bugs',
'join_key_lhs' => 'account_id',
'join_key_rhs' => 'bug_id',
'relationship_type' => 'many-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => NULL,
'lhs_subpanel' => 'default',
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'accounts_contacts' =>
array (
'id' => '47618834-f73a-0832-82b2-4e8d9a500d55',
'relationship_name' => 'accounts_contacts',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Contacts',
'rhs_table' => 'contacts',
'rhs_key' => 'id',
'join_table' => 'accounts_contacts',
'join_key_lhs' => 'account_id',
'join_key_rhs' => 'contact_id',
'relationship_type' => 'many-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => 'ForAccounts',
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'accounts_opportunities' =>
array (
'id' => '47854985-4c23-7df8-e883-4e8d9ab9f2f9',
'relationship_name' => 'accounts_opportunities',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Opportunities',
'rhs_table' => 'opportunities',
'rhs_key' => 'id',
'join_table' => 'accounts_opportunities',
'join_key_lhs' => 'account_id',
'join_key_rhs' => 'opportunity_id',
'relationship_type' => 'many-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => NULL,
'lhs_subpanel' => NULL,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'projects_accounts' =>
array (
'id' => '4c1311ca-65a5-710d-208d-4e8d9a930a3e',
'relationship_name' => 'projects_accounts',
'lhs_module' => 'Project',
'lhs_table' => 'project',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'id',
'join_table' => 'projects_accounts',
'join_key_lhs' => 'project_id',
'join_key_rhs' => 'account_id',
'relationship_type' => 'many-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => 'default',
'lhs_subpanel' => 'default',
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
),
'accounts_ecmquotes' =>
array (
'id' => '4d4247f5-7697-71c6-246a-4e8d9a95146b',
'relationship_name' => 'accounts_ecmquotes',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'EcmQuotes',
'rhs_table' => 'ecmquotes',
'rhs_key' => 'id',
'join_table' => 'accounts_ecmquotes_c',
'join_key_lhs' => 'accounts_e8f57ccounts_ida',
'join_key_rhs' => 'accounts_ea575mquotes_idb',
'relationship_type' => 'one-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => 'default',
'lhs_subpanel' => NULL,
'from_studio' => true,
'is_custom' => true,
'relationship_only' => false,
'for_activities' => false,
),
'accounts_ecminvoiceouts' =>
array (
'id' => '4d9179b3-ac6d-8733-1110-4e8d9ac35832',
'relationship_name' => 'accounts_ecminvoiceouts',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'EcmInvoiceOuts',
'rhs_table' => 'ecminvoiceouts',
'rhs_key' => 'id',
'join_table' => 'accounts_ecminvoiceouts',
'join_key_lhs' => 'account_id',
'join_key_rhs' => 'ecminvoiceout_id',
'relationship_type' => 'many-to-many',
'relationship_role_column' => NULL,
'relationship_role_column_value' => NULL,
'reverse' => '0',
'deleted' => '0',
'readonly' => true,
'rhs_subpanel' => 'default',
'lhs_subpanel' => NULL,
'is_custom' => true,
'relationship_only' => false,
'for_activities' => false,
'from_studio' => false,
),
'accounts_ecmquotes_1' =>
array (
'rhs_label' => 'Oferty',
'rhs_subpanel' => 'default',
'lhs_module' => 'Accounts',
'rhs_module' => 'EcmQuotes',
'relationship_type' => 'one-to-many',
'readonly' => false,
'deleted' => false,
'relationship_only' => false,
'for_activities' => false,
'is_custom' => false,
'from_studio' => false,
'relationship_name' => 'accounts_ecmquotes_1',
),
);
?>