const ID usage

This commit is contained in:
Yuri Kuznetsov
2024-11-11 17:41:22 +02:00
parent 0531b7239c
commit 6d1c4d2aa8
85 changed files with 252 additions and 173 deletions

View File

@@ -34,6 +34,7 @@ use Espo\Entities\ArrayValue as ArrayValueEntity;
use Espo\ORM\Entity;
use Espo\Core\Repositories\Database;
use Espo\ORM\Name\Attribute;
use RuntimeException;
use LogicException;
@@ -83,7 +84,7 @@ class ArrayValue extends Database
$isTransaction = true;
$existingList = $this
->select(['id', 'value'])
->select([Attribute::ID, 'value'])
->where([
'entityType' => $entity->getEntityType(),
'entityId' => $entity->getId(),
@@ -148,7 +149,7 @@ class ArrayValue extends Database
$this->entityManager->getTransactionManager()->start();
$list = $this
->select(['id'])
->select([Attribute::ID])
->where([
'entityType' => $entity->getEntityType(),
'entityId' => $entity->getId(),