mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
ref
This commit is contained in:
@@ -54,7 +54,7 @@ class EntryPointManager
|
||||
$className = $this->getClassName($name);
|
||||
|
||||
if (!$className) {
|
||||
throw new NotFoundSilent("Entry point '{$name}' not found.");
|
||||
throw new NotFoundSilent("Entry point '$name' not found.");
|
||||
}
|
||||
|
||||
$noAuth = false;
|
||||
@@ -79,7 +79,7 @@ class EntryPointManager
|
||||
$className = $this->getClassName($name);
|
||||
|
||||
if (!$className) {
|
||||
throw new NotFoundSilent("Entry point '{$name}' not found.");
|
||||
throw new NotFoundSilent("Entry point '$name' not found.");
|
||||
}
|
||||
|
||||
$entryPoint = $this->injectableFactory->create($className);
|
||||
|
||||
@@ -31,21 +31,18 @@ namespace Espo\Repositories;
|
||||
|
||||
use Espo\Entities\Import as ImportEntity;
|
||||
use Espo\Entities\ImportEntity as ImportEntityEntity;
|
||||
|
||||
use Espo\ORM\Collection;
|
||||
use Espo\ORM\Entity;
|
||||
use Espo\ORM\Query\Select as Query;
|
||||
use Espo\ORM\Query\SelectBuilder;
|
||||
|
||||
use Espo\Entities\Attachment as AttachmentEntity;
|
||||
|
||||
use Espo\Core\Repositories\Database;
|
||||
use Espo\Entities\ImportError;
|
||||
|
||||
use LogicException;
|
||||
|
||||
/**
|
||||
* @extends Database<\Espo\Entities\Import>
|
||||
* @extends Database<ImportEntity>
|
||||
*/
|
||||
class Import extends Database
|
||||
{
|
||||
@@ -76,8 +73,6 @@ class Import extends Database
|
||||
throw new LogicException();
|
||||
}
|
||||
|
||||
$param = null;
|
||||
|
||||
switch ($link) {
|
||||
case 'imported':
|
||||
$param = 'isImported';
|
||||
|
||||
@@ -114,11 +114,11 @@ class Email extends Record
|
||||
return $entity;
|
||||
}
|
||||
|
||||
private function markAsRead(string $id, ?string $userId = null): void
|
||||
private function markAsRead(string $id): void
|
||||
{
|
||||
$service = $this->injectableFactory->create(InboxService::class);
|
||||
|
||||
$service->markAsRead($id, $userId);
|
||||
$service->markAsRead($id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,7 +31,6 @@ namespace Espo\Services;
|
||||
|
||||
use Espo\Repositories\Import as Repository;
|
||||
use Espo\Entities\Import as ImportEntity;
|
||||
|
||||
use Espo\Core\Acl\Table;
|
||||
use Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\Core\Exceptions\NotFoundSilent;
|
||||
@@ -74,7 +73,6 @@ class Import extends Record
|
||||
->withSearchParams($searchParams)
|
||||
->build();
|
||||
|
||||
/** @var \Espo\ORM\Collection<\Espo\ORM\Entity> $collection */
|
||||
$collection = $this->getImportRepository()->findResultRecords($entity, $link, $query);
|
||||
|
||||
$listLoadProcessor = $this->injectableFactory->create(ListLoadProcessor::class);
|
||||
|
||||
@@ -77,11 +77,8 @@ class Note extends Record
|
||||
|
||||
$userTeamIdList = $this->user->getTeamIdList();
|
||||
|
||||
/** @var string[] $userIdList */
|
||||
$userIdList = $entity->getLinkMultipleIdList('users');
|
||||
/** @var string[] $portalIdList */
|
||||
$portalIdList = $entity->getLinkMultipleIdList('portals');
|
||||
/** @var string[] $teamIdList */
|
||||
$teamIdList = $entity->getLinkMultipleIdList('teams');
|
||||
|
||||
/** @var iterable<UserEntity> $targetUserList */
|
||||
|
||||
Reference in New Issue
Block a user