diff --git a/application/Espo/Core/Utils/Database/Orm/Converter.php b/application/Espo/Core/Utils/Database/Orm/Converter.php index 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 Converter FieldParam::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.php index 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'; }