如何定义在模块中工作的相关字段查找值

我采取了以下样品关闭案例模块,并试图匹配相同的模式,但它不适用于我

'site_mxxn' => array(
'name' => 'site_mxxn',
'rname' => 'name',
'id_name' => 'site_id',
'vname' => 'LBL_SITE_MXXN',
'type' => 'relate',
'related_fields' => array(
'site_id',
),
'link' => 'accounts_workorder_1',
'table' => 'accounts_cstm', //-->我需要在前端显示的列在此表上称为MXXN
'join_name' => 'accounts',
'isnull' => 'true',
'module' => 'CustomAccount',
'dbType' => 'varchar',
'len' => 100,
'source' => 'non-db',
'unified_search' => true,
'comment' => 'site_id字段表示的站点的名称',
'required' => true,
'importable' => 'required',
'exportable' => true,
'studio' => array(
'portalrecordview' => false,
'portallistview' => false,
),
),
'site_id' => array(
'name' => 'site_id',
'type' => 'relate',
'dbType' => 'id',
'rname' => 'id',
'module' => 'CustomAccounts',
'id_name' => 'site_id',
'reportable' => false,
'vname' => 'LBL_SITE_ID',
'audited' => true,
'massupdate' => false,
'comment' => '订单相关的3d彩吧论坛',
),


当我尝试保存记录时,我一直在出错



PHP致命错误: 未捕获的错误:调用fallowerfield()在/var/www/html/include/sugarquery/builder/field/select.php:117\nstack跟踪:\ n#0 / var / www / html /包含/sugarquery/builder/field.php(112):sugarquery_builder_field_select->expandfield()\ n#1 /var/www/html/include/sugarquery/builder/field.php (87):sugarquery_builder_field->setupfield(对象(sugarquery))\ n#2 /var/www/html/include/sugarquery/builder/field/select.php(23):sugarquery_builder_field->__construct('site_mxxn',对象(sugarquery))\ n#3 /var/www/html/include/sugarquery/builder/select.php(53):sugarquery_builder_field_select->__construct('site_mxxn',对象(sugarquery))\ n#4 /var/www/html/include/sugarquery/sugarquery.php(2015):sugarquery_builder_select->字段(阵列)\ n#5 /var/www/html/data/sugarbean.php(3505):sugarquery->选择(array)\ n#6 /var/www/html/clients/base/api/filterapi.php (712):糖>fetchfromquery(对象(sugarquery),array,array)\ n#7 /var/www/html/clients/base/api/filterapi.php(445):filterapi->runquery(对象(restservice),数组, 在/var/www/html/include/sugarquery/builder/field/select.php上线117,推荐:http:// localhost /

我有2个自定义模块,订单1: - >M SITE

我想在与3d彩吧论坛相关的顺序上创建一个查找字段,所以在记录录制视图时,我要在3d彩吧论坛名称中键入并可从下拉列表中选择它并保存在DB以进行订单

3d彩吧论坛扩展帐户模块

3d彩吧论坛可以有许多订单