EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
consts
Yuri Kuznetsov774143c5e229
diff --git a/application/Espo/Core/Utils/Database/Orm/Converter.php b/application/Espo/Core/Utils/Database/Orm/Converter.phpindex 86d3c02b01..b2ec3221fc 100644--- a/application/Espo/Core/Utils/Database/Orm/Converter.php+++ b/application/Espo/Core/Utils/Database/Orm/Converter.php@@ -85,8 +85,8 @@ class ConverterFieldParam::AUTOINCREMENT => AttributeParam::AUTOINCREMENT,'entity' => 'entity',FieldParam::NOT_STORABLE => AttributeParam::NOT_STORABLE,- 'link' => AttributeParam::RELATION,- 'field' => AttributeParam::FOREIGN,+ FieldParam::LINK => AttributeParam::RELATION,+ FieldParam::FIELD => AttributeParam::FOREIGN,'unique' => 'unique','index' => 'index',FieldParam::DEFAULT => AttributeParam::DEFAULT,diff --git a/application/Espo/ORM/Defs/Params/FieldParam.php b/application/Espo/ORM/Defs/Params/FieldParam.phpindex ae71555236..e476babb77 100644--- a/application/Espo/ORM/Defs/Params/FieldParam.php+++ b/application/Espo/ORM/Defs/Params/FieldParam.php@@ -93,4 +93,14 @@ class FieldParam* Dependee attributes.*/public const DEPENDEE_ATTRIBUTE_LIST = 'dependeeAttributeList';++ /**+ * Foreign link.+ */+ public const LINK = 'link';++ /**+ * Foreign field.+ */+ public const FIELD = 'field';}