For what additionalTables are used for ?
Collapse
X
-
EspoCRM – Open Source CRM Application. Contribute to espocrm/espocrm development by creating an account on GitHub.
publicfunctionfind(SearchParams$searchParams, ?FindParams$params = null): RecordCollection
$query = $selectBuilder
->from($this->entityType)
->withStrictAccessControl()
->withSearchParams($preparedSearchParams)
->withAdditionalApplierClassNameList(
$this->createSelectApplierClassNameListProvider()->get($this->entityType)
)
->build();
$preparedSearchParams with inCategory (screenshot in attach) trasfered in $query with additionalTables in where (screenshot in attach )
Leave a comment:
-
I copied it from CategoryTree.
And additionalTables is used in where array with inCategory select.
Is it nessesary to use additionalTables in tree entity ?Leave a comment:
-
It's an internal feature. Not listed in the metadata reference, hence to be treated as a non-official feature. It creates an additional table to store additional data.Leave a comment:
-
For what additionalTables are used for ?
Dear sirs, please, For what additionalTables are used for ?
EspoCRM – Open Source CRM Application. Contribute to espocrm/espocrm development by creating an account on GitHub.
"additionalTables": {
"{entityType}Path": {
"attributes": {
"id": {
"type": "id",
"dbType": "integer",
"len": 11,
"autoincrement": true,
"unique" : true
},
"ascendorId": {
"type": "foreignId",
"index": true
},
"descendorId": {
"type": "foreignId",
"index": true
}
}
}
}Tags: None

Leave a comment: