type fixes

This commit is contained in:
Yuri Kuznetsov
2021-11-03 21:07:10 +02:00
parent e2a7a439d2
commit 2cb235f49c
14 changed files with 59 additions and 25 deletions
@@ -31,13 +31,15 @@ namespace Espo\Modules\Crm\Classes\FieldProcessing\Call;
use Espo\ORM\Entity;
use Espo\Core\ORM\Entity as CoreEntity;
use Espo\Core\{
FieldProcessing\Loader,
FieldProcessing\Loader\Params,
ORM\EntityManager,
};
use StdClass;
use stdClass;
class PhoneNumberMapLoader implements Loader
{
@@ -54,6 +56,8 @@ class PhoneNumberMapLoader implements Loader
{
$map = (object) [];
assert($entity instanceof CoreEntity);
$contactIdList = $entity->getLinkMultipleIdList('contacts');
if (count($contactIdList)) {
@@ -69,7 +73,7 @@ class PhoneNumberMapLoader implements Loader
$entity->set('phoneNumbersMap', $map);
}
private function populate(StdClass $map, string $entityType, array $idList): void
private function populate(stdClass $map, string $entityType, array $idList): void
{
$entityList = $this->entityManager
->getRDBRepository($entityType)