Merge branch 'fix'

This commit is contained in:
Yuri Kuznetsov
2023-06-19 19:41:59 +03:00
3 changed files with 16 additions and 9 deletions
@@ -1688,12 +1688,19 @@ class EntityManager
{
$templateType = $this->metadata->get(['scopes', $entityType, 'type']);
/** @var array<string, array<string, mixed>> $params */
$params = [
...($this->metadata->get(['app', 'entityManagerParams', 'Global']) ?? []),
...($this->metadata->get(['app', 'entityManagerParams', '@' . ($templateType ?? '_')]) ?? []),
...($this->metadata->get(['app', 'entityManagerParams', $entityType]) ?? []),
];
$map1 = $this->metadata->get(['app', 'entityManagerParams', 'Global']) ?? [];
$map2 = $this->metadata->get(['app', 'entityManagerParams', '@' . ($templateType ?? '_')]) ?? [];
$map3 = $this->metadata->get(['app', 'entityManagerParams', $entityType]) ?? [];
if (version_compare(PHP_VERSION, '8.1.0') < 0) {
// @todo Remove.
/** @var array<string, array<string, mixed>> $params */
$params = array_merge($map1, $map2, $map3);
}
else {
/** @var array<string, array<string, mixed>> $params */
$params = [...$map1, ...$map2, ...$map3];
}
$result = [];
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "espocrm",
"version": "7.5.1",
"version": "7.5.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "espocrm",
"version": "7.5.1",
"version": "7.5.2",
"hasInstallScript": true,
"license": "GPL-3.0",
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "espocrm",
"version": "7.5.1",
"version": "7.5.2",
"description": "Open-source CRM.",
"repository": {
"type": "git",